At 11:49 10/02/99 -0500, Jeff Dubrule wrote:
>On Wed, Feb 10, 1999 at 02:35:03PM -0000, Carl Burnside wrote:
>> Is it possible to use SSL communications calls in a non-blocking
fashion?  I
>> am trying to implement SSL on a VMS environment that currently uses a
lot of
>> asynchronous QIO calls.  It appears that the existing SSL library consists
>> of socket style synchronous calls - or am I failing to understand it all.
>> Any pointers welcomed :-)
>
>  fcntl(fd, F_SETFL, O_NONBLOCK);
>
>This means that your reads & writes will return instantly.
>
>select() can also be used to determine how much stuff is waiting in a
>socket.
>

Does this account for any data buffered in the SSL session ?

I think ran foul of this on an initial attempt to get SSL to timeout a client
response; but have not pursued it any further yet.

When I enable select(timeout) the connections usually hang, and it appears 
that there is some read-ahead into a buffer (in 'SSL' struct), which the
select() is unaware of.

Can anybody shed some light on this ?
Is there an 'official' way to check for buffered read-ahead data,
before making a call to select() ?

regards

Moray

-----------------------------------------------------------------
Moray Goodwin                          phone : +44-1442-403600
Chief Engineer                         fax   : +44-1442-231178 
Jyra Research Inc.,                    email : [EMAIL PROTECTED] 
111 Hamilton House,                    web   : www.jyra.com
Marlowes, Hemel Hempstead
Herts, HP1 1BB                         Cisco CCIE : No.1593
-----------------------------------------------------------------


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

Reply via email to