[PATCH] sendfile erroniously returns ENOTCONN.

David G. Lawrence dg at root.com
Sat Jan 3 04:08:12 PST 2004


> >    Yes, I think checking for SS_CATSENDMORE (and returning EPIPE) prior to
> > checking SS_ISCONNECTED (and returning ENOTCONN as it does now) is the right
> > thing to do.
> 
> Last question (I hope)... :)
> 
> Why not call sosend?

   sosend is the primary mechanism that write(8) uses to send data on a
socket. sendfile(8) is an alternative to write(8)/sosend(). Although
they both have similar purposes (sending data on a socket), they
accomplish this in very different ways.

-DG

David G. Lawrence
President
Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.


More information about the freebsd-hackers mailing list