diff options
author | des <des@FreeBSD.org> | 2012-04-30 12:11:45 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2012-04-30 12:11:45 +0000 |
commit | 34d79578aeedbc39d45d249d6c26209e9cd105c2 (patch) | |
tree | af2d0e690d12bbfcba2d5fb12c3b271bfe935c9e /lib/libfetch/http.c | |
parent | 06fcd8e3650f3af601351d654aa343bf915496f2 (diff) | |
download | FreeBSD-src-34d79578aeedbc39d45d249d6c26209e9cd105c2.zip FreeBSD-src-34d79578aeedbc39d45d249d6c26209e9cd105c2.tar.gz |
Since the socket is non-blocking, it is necessary to use select(2) even
when there is no timeout, because read(2) will return immediately if there
is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on
slow connections.
MFC after: 3 weeks
Noticed by: Yanhui Shen <shen.elf@gmail.com>
Diffstat (limited to 'lib/libfetch/http.c')
0 files changed, 0 insertions, 0 deletions