Fixed problem with detection of end-of-stream for HTTP socket. Problem
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 Dec 2006 23:31:24 +0000 (23:31 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 Dec 2006 23:31:24 +0000 (23:31 +0000)
commit0209815ecb67520622b4e11a6c15b28f4b1dce8f
tree8badee6a764d7a089866ba04f52bdbb3b098ab37
parentae9da79f55e37ed14df5e019daa415b0f18f7bff
Fixed problem with detection of end-of-stream for HTTP socket. Problem
was that if errno happened to be EAGAIN and read returned 0, then
errno was invalid (or has value of previous failed Unix call). Only
if read returns -1, it's appropriate to check errno.
src/http.c