Non-blocking fds: select() finds writeable socket, but SSL_write hangs

2003-10-13 Thread KOverton
(Sorry about the last re-sending of Peter's message.) > In case of a SSL_WANT_READ/WANT_WRITE error, what are you doing > as a reaction? > > You have to select and then repeat exactly the last operation. > > So if you do an SSL_write and get SSL_WANT_READ, you select > and then repeat the SSL_w

Non-blocking fds: select() finds writeable socket, but SSL_write hangs

2003-10-13 Thread KOverton
In case of a SSL_WANT_READ/WANT_WRITE error, what are you doing as a reaction? You have to select and then repeat exactly the last operation. So if you do an SSL_write and get SSL_WANT_READ, you select and then repeat the SSL_write operation. At least this is what I rememember.

Non-blocking fds: select() finds writeable socket, but SSL_write hangs

2003-10-13 Thread KOverton
OpenSSL 0.9.6c, Windows98, Visual C++6.0. A funny predicament.  I'm creating a socket and setting it in the SSL system via SSL_set_fd() -- I'm not using BIOs.  This is a very simple client to download a web-page from a server in a one-off, HTTP/1.0 manner. I set my socket non-blocking, connect t