[openssl-users] Extra EPOLLIN event at end of SSL connection

2016-02-08 Thread counterpoint
Working on a multi-threaded system that is providing an SSL server capability, I am running into an odd problem at the end of a connection. There seems no functional downside, in that it appears all data is handled correctly. The trouble is errors are being logged. What seems to happen is that

Re: [openssl-users] Extra EPOLLIN event at end of SSL connection

2016-02-08 Thread counterpoint
Looks as if I can reply to my own message! Maybe this exchange might help someone else. It seems that EPOLLIN events with no data are inevitable and have to be accepted. So in a way, it is a quirk of OpenSSL that typical example code results in the no data case being interpreted as an error.

Re: [openssl-users] Extra EPOLLIN event at end of SSL connection

2016-02-08 Thread Salz, Rich
Are you getting WANT_READ or WANT_WRITE? That is common for non-blocking. And also, yeah, way back when, it was common to return zero when read on a non-blocking socket had no data :) And what release are you using? -- openssl-users mailing list To unsubscribe:

Re: [openssl-users] Extra EPOLLIN event at end of SSL connection

2016-02-08 Thread Kurt Roeckx
On Mon, Feb 08, 2016 at 07:43:00AM -0700, counterpoint wrote: > Working on a multi-threaded system that is providing an SSL server > capability, I am running into an odd problem at the end of a connection. > There seems no functional downside, in that it appears all data is handled > correctly.