On Fri, Sep 27, 2002 at 09:57:15AM -0700, Cory Albrecht wrote:
> --- Lutz Jaenicke <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 26, 2002 at 11:36:36PM -0700, Cory Albrecht wrote:
> > > With buffer sizes of 8193 bytes or more, after SSL_write() returns
> > an
> > > error it NEVER succedes ever again on that socket. My program does
> > it's
> > > something else tasks, trying about every 0.1s to send more data
> > with
> > > SSL_write(). But SSL_write() always returns -1 and SSL_get_error()
> > > always return SSL_ERROR_WANT_WRITE. I even let it continue over
> > night
> > > once - 10 hours with no change. 
> > > 
> > > With a buffer size of 8192 bytes or less this problem NEVER
> > happens.
> 
> > Doesn't make sense to me.
> 
> > In your report you pointed out to use a 0.9.7 snapshot but you did
> > leave out information about your platform.
> 
> I didn't? Sorry - I thought I did. I'm running Win2Kpro and I used
> VC++6 to build both the OpenSSL libs/dlls and my own prog.
> 
> Is there any other info I could give which might make the cause of the
> problem more apparent?

I am not sure.

To be more precise: TLS has a maximum record size of 16k. This means,
that SSL_write() operations with a message size of up to 16k are put
into one TLS record (encrypted, signed). This message is then sent
over the transport (underlying BIO) with BIO_write(). For a network
connection this would mean that it is sent with write().

This information combined with the problem you describe would either mean:
* there is a problem in the block handling inside the SSL layer with
  messages larger than 8192bytes (but below 16k): a problem like this
  should be reproducable on all platforms.
* there is a problem with the writing out of the data after SSL processing.
  This might be platform dependent.
Can you try your test problem on another (UNIX) platform? I don't remember
having seen reports problems about similar problems before...

Best regards,
        Lutz
PS. Messages larger than 16k are automatically split into TLS records.
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to