summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2012-04-30 12:11:45 +0000
committerdes <des@FreeBSD.org>2012-04-30 12:11:45 +0000
commit34d79578aeedbc39d45d249d6c26209e9cd105c2 (patch)
treeaf2d0e690d12bbfcba2d5fb12c3b271bfe935c9e /lib/libfetch/http.c
parent06fcd8e3650f3af601351d654aa343bf915496f2 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud