tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: readv() on TCP socket returns 0



On Thu, Mar 07, 2013 at 06:25:20PM +0100, Emmanuel Dreyfus wrote:
> Hi
> 
> readv() returns 0 on EOF. If the file descriptor is a TCP socket, I
> guess that means the connexion was closed, but are there other
> situations where readv() can return 0 for a TCP socket?

I think that the only other cases are when the iovcnt is 0 or else
the sum of the iov_len is 0.  If it is returning 0 under other
circumstances, please file a bug!

Dave

-- 
David Young
dyoung%pobox.com@localhost    Urbana, IL    (217) 721-9981


Home | Main Index | Thread Index | Old Index