Re: OpenSSL session hangs

2004-02-24 Thread Paul L. Allen
Dr. Stephen Henson wrote: On Mon, Feb 23, 2004, Paul L. Allen wrote: [... tracking my problem partially through the OpenSSL libraries ...] I'm stumped! I'm not immediately sure what the problem is either. It might be stack corruption somewhere or something confusing the malloc library. Have you

Re: OpenSSL session hangs

2004-02-24 Thread Pablo J Royo
uot; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 24, 2004 2:50 PM Subject: Re: OpenSSL session hangs > > > On Mon, Feb 23, 2004, Paul L. Allen wrote: > > > > > OK, here's where it took me: > > > > The setup is a sta

Re: OpenSSL session hangs

2004-02-24 Thread Dr. Stephen Henson
On Tue, Feb 24, 2004, Dr. Stephen Henson wrote: > > Not so private after all: bugger! Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demo

Re: OpenSSL session hangs

2004-02-24 Thread Dr. Stephen Henson
On Mon, Feb 23, 2004, Paul L. Allen wrote: > > OK, here's where it took me: > > The setup is a stack consisting of a buffered BIO, an SSL BIO, and > a socket BIO. In a typical test run, client and server have had a > conversation of a hundred or so messages. The most recent exchange > involv

Re: OpenSSL session hangs

2004-02-19 Thread Paul L. Allen
Paul L. Allen wrote: Dr. Stephen Henson wrote: OK, that seems to rule out the low level socket read and write calls being the cause. Have you tried this in the latest 0.9.7 snapshot BTW? IIRC some fixes have been made to buffering BIOs. I'll try that this evening. After that I'm off to the o

Re: OpenSSL session hangs

2004-02-19 Thread Paul L. Allen
Dr. Stephen Henson wrote: OK, that seems to rule out the low level socket read and write calls being the cause. Have you tried this in the latest 0.9.7 snapshot BTW? IIRC some fixes have been made to buffering BIOs. I'll try that this evening. After that I'm off to the ocean for the weekend. My l

Re: OpenSSL session hangs

2004-02-19 Thread Dr. Stephen Henson
On Thu, Feb 19, 2004, Paul L. Allen wrote: > Paul L. Allen wrote: > >Dr. Stephen Henson wrote: > > > >>On Wed, Feb 18, 2004, Paul L. Allen wrote: > >> > >> > >>>[ ... problem statement omitted ...] > >>> > >> > >> > >>Firstly I hope you are checking the return values from BIO_gets(), > >>BIO_puts

Re: OpenSSL session hangs

2004-02-19 Thread Paul L. Allen
Paul L. Allen wrote: Dr. Stephen Henson wrote: On Wed, Feb 18, 2004, Paul L. Allen wrote: [ ... problem statement omitted ...] Firstly I hope you are checking the return values from BIO_gets(), BIO_puts() and BIO_flush(). Yes, I am. All are OK up to the hang. Presumably you are using a b

Re: OpenSSL session hangs

2004-02-18 Thread Dr. Stephen Henson
On Wed, Feb 18, 2004, Paul L. Allen wrote: > I have a client/server application secured by certificates on both > ends using OpenSSL 0.9.7c on RedHat 9. Client and server exchange > messages consisting of lines of ASCII text using BIO_puts() and > BIO_gets(). I include a call to BIO_flush() after

OpenSSL session hangs

2004-02-18 Thread Paul L. Allen
I have a client/server application secured by certificates on both ends using OpenSSL 0.9.7c on RedHat 9. Client and server exchange messages consisting of lines of ASCII text using BIO_puts() and BIO_gets(). I include a call to BIO_flush() after each BIO_puts() in order to ensure that the entire