NetBSD-Users archive

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

Re: ECONNRESET not returned when calling send() on a socket



On Sun, Dec 22, 2019 at 21:20:41 +0000, Sad Clouds wrote:

> On Sun, 22 Dec 2019 23:44:33 +0300
> Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
> 
> > LOL.  Sorry :) I mean, you are already using poll(2).  It literally
> > cannot get *any* worse.  Literally.  The margins of this email are
> > just too narrow...  Sorry again, traumatic memories...
> > 
> > E.g. NetBSD and Solaris never report POLLHUP for sockets.  Windows and
> > OSX report POLLHUP when remote half-closes.  Linux reports it on full
> > close.  NetBSD and Solaris don't report POLLERR on failed connect(2),
> > just POLLOUT.  And I don't even want to think about scenarios like
> > reset after half-close...
> 
> Well, I don't have problems with poll(). For a small number of file
> descriptors it works quite well. Yes it does get expensive when you
> start using 1000s of file descriptors, but then you just use epoll(),
> kqueue(), etc.

This is not what I mean.

-uwe


Home | Main Index | Thread Index | Old Index