Hi,
On Sun, Jan 21, 2001 at 12:25:38PM -0500, Quickling wrote:
> I haven't thoroughly tested it, but I'm not sure I *ever* get
> a WANT_READ while writing or a WANT_WRITE while reading
> between sockets that are created and negotiated. Also I was
> under the impression that read and write were independent
> channels within the SSL connection, i.e. not required to
> proceed synchronously, but perhaps I misunderstand the
> mysterious workings of the codes, thus:
>
> i have a problem, perhaps related, while quickly establishing
> large numbers of secure connections at rapid pace. a tiny
> percentage never finish handshaking properly because ssl
> refuses to read on the socket, despite the fact that it had
> indicated WANT_READ on the prior call and that 51 bytes were
> waiting patiently on the socket. I'm using multiple threads
> too and it feels like calls get interleaved in a way SSL
> finds unpleasant. Testing continues. Answers remain elusive.
>
> Q
Hmmm... this could be related to my problem as well. My application is
more of a test suite which involves many connects and disconnects at a
high rate. Sometimes, albeit rarely, my application makes it through
it's many tests but most times, I get SSL failures. I too am only
experiencing this on Win32. My application is ported to other OS's
I don't see the same problem. (ie. linux, solaris, aix, ...)
Does anyone have more information on what the problem could be?
Take care,
Cory
> At 12:53 PM 21.01.2001 -03-30, you wrote:
> >Hi,
> >
> >I my application has multiple threads that perform operations on an SSL
> >structure, what happens in this case:
> >
> >One thread performs an SSL_read(...) which returns SSL_ERROR_WANT_READ
> >and then does a select on the file descriptor to determine when to retry
> >the SSL_read(...). Now, all my operations on the SSL structure are
> >synchronized but I can't sychronize the select because this will cause
> >my application to block indefinitely. My question is then, after the
> >SSL_read(...) returns the SSL_ERROR_WANT_READ error it presumably has
> >some internal data processed; What happens if during the select another
> >thread performs an SSL_write(...) which also returns SSL_ERROR_WANT_READ?
> >Do these two calls stomp all over each other?
> >
> >I think yes, since my application eventually dies with SSL_ERROR_SSL due
> >to various errors listed in the error queue.
> >
> >Please advise! :)
> >
> >Cory
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
--
Cory Winter E-Mail: mailto:[EMAIL PROTECTED]
Software Developer WWW: http://www.ooc.com/
Object Oriented Concepts, Inc. Phone: (709) 738-3725
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]