RE: Problem handling unexpected SSL shutdown

2007-08-16 Thread Shaw Graham George
... G. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darryl Miles Sent: 15 August 2007 15:40 To: openssl-users@openssl.org Subject: Re: Problem handling unexpected SSL shutdown Shaw Graham George wrote: The sequence of events goes like this: 1

Re: Problem handling unexpected SSL shutdown

2007-08-16 Thread Darryl Miles
Shaw Graham George wrote: The problem is that, on Windows at least, my server doesn't appear to get the SSL shutdown notify packet, for some reason. So, if that is to be expected, I'm looking for an alternative way of detecting the closure. I've now tested it on Linux, and the existing code

RE: Problem handling unexpected SSL shutdown

2007-08-16 Thread Shaw Graham George
handling unexpected SSL shutdown Shaw Graham George wrote: The problem is that, on Windows at least, my server doesn't appear to get the SSL shutdown notify packet, for some reason. So, if that is to be expected, I'm looking for an alternative way of detecting the closure. I've now tested

Re: Problem handling unexpected SSL shutdown

2007-08-16 Thread Darryl Miles
Shaw Graham George wrote: Sure. 1. The server receives the HTTP request, using SSL_read() and SSL_pending(). The request contains a Keep-Alive request. 2. The server writes the data out to another process. 3. The server then it sits on an event handler that multiplexes a select() (or

RE: Problem handling unexpected SSL shutdown

2007-08-16 Thread David Schwartz
Side track: Is it possible to make the window platform listen on 31 sockets at once per thread ? (or whatever is small limit was) IOCP. Okay you closed your ears to the read event ? On Unix the select() has an exceptfds which can be used to pickup a socket error/close (but may not be

Problem handling unexpected SSL shutdown

2007-08-15 Thread Shaw Graham George
Hi, We have an application that provides HTTPS, either as client or server, for our customers. At the moment I am doing some testing between our client and our server, as a result of a problem with one of our customers, and there is a particular sequence of events, that involves an unexpected

RE: Problem handling unexpected SSL shutdown

2007-08-15 Thread Shaw Graham George
August 2007 11:38 To: openssl-users@openssl.org Subject: Problem handling unexpected SSL shutdown Hi, We have an application that provides HTTPS, either as client or server, for our customers. At the moment I am doing some testing between our client and our server, as a result of a problem with one

Re: Problem handling unexpected SSL shutdown

2007-08-15 Thread jimmy bahuleyan
Shaw Graham George wrote: Hi, We have an application that provides HTTPS, either as client or server, for our customers. At the moment I am doing some testing between our client and our server, as a result of a problem with one of our customers, and there is a particular sequence of

Re: Problem handling unexpected SSL shutdown

2007-08-15 Thread jimmy bahuleyan
jimmy bahuleyan wrote: Shaw Graham George wrote: Hi, We have an application that provides HTTPS, either as client or server, for our customers. At the moment I am doing some testing between our client and our server, as a result of a problem with one of our customers, and there is a

RE: Problem handling unexpected SSL shutdown

2007-08-15 Thread Shaw Graham George
Of jimmy bahuleyan Sent: 15 August 2007 14:01 To: openssl-users@openssl.org Subject: Re: Problem handling unexpected SSL shutdown jimmy bahuleyan wrote: Shaw Graham George wrote: Hi, We have an application that provides HTTPS, either as client or server, for our customers. At the moment I am doing

Re: Problem handling unexpected SSL shutdown

2007-08-15 Thread Darryl Miles
Shaw Graham George wrote: The sequence of events goes like this: 1. The SSL handshake proceeds as normal. 2. The client puts an HTTP request 3. The server gets the HTTP request 4. The client then executes an (unexpected) SSL shutdown 5. The server puts the HTTP response Here I might