[plt-scheme] ssl/tls connections

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Mar 31 15:41:31 EDT 2009

At Tue, 31 Mar 2009 12:24:25 -0600, Matthew Flatt wrote:
> The issue is that when SSL_read() or SSL_write() produces
> SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE, the man pages say that you
> have to retry SSL_read() or SSL_write() again with the same arguments
> as before. If I remember correctly, I experimented with ignoring this
> requirement, and it didn't work.
> 
> Searching again on this topic suggests [1,2] that
> 
>  * The retry is not really a requirement for SSL_read().
> 
>  * The retry is not a requirement for SSL_write() if you use the 
>    SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER mode.
> 
>  * In any case, "retry" doesn't necessarily mean "must retry before
>    doing anything else".
> 
> I don't yet believe any of this, but maybe it's worth one more try.

This change does seem to work, so I've committed it to SVN and removed
the documentation's claim that attempting to read/write puts the port
in read-/write-only mode.



Posted on the users mailing list.