> I have a Linux server application that calls SSL_write in a loop, and
> polls the underlying socket using the poll(2) system call.  In the
> loop, the first few calls to poll return immediately with data on the
> socket, but I'm finding that the last call to poll always takes about
> 50ms to before poll returns.  I am setting O_NONBLOCK on the socket
> using fcntl when I first initialize it, so I know it's in non-
> blocking mode.  Is there anything else that could cause a poll not to
> immediately find readable data on a socket to which I've written
> using SSL_write?  Note that I confirmed via log message that the
> SSL_write operation completes before I call poll.

It's hard to understand your issue. You don't tell us if you're 'poll'ing
just for readability and what response you got from SSL_write. You don't
tell us what timeout you pass to 'poll'. So this response includes a lot of
guessing.

Presumably, 'poll' is not returning because there is no data. Presumably
there is no data because to other side hasn't sent any. This could be
because the other side isn't supposed to (for example, it may be waiting for
the other side to send protocol data) or it could be because there's a
problem with the other side.

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to