RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-17 Thread David Schwartz
> > Because that's what HTTP version 1.0 says to do, and you asked > > for HTTP 1.0 > > behavior. If it didn't, how would the client know when it got the entire > > request? > (You mean the entire response, and in particular response body > aka entity.) Right. > Content-length is allowed in 1.0

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-17 Thread Dave Thompson
> From: owner-openssl-users On Behalf Of David Schwartz > Sent: Monday, 14 January, 2008 16:48 > > In fact, I'm not sure why apache closes connection even if I > set KeepAlive > > to On in httpd.conf. > > Because that's what HTTP version 1.0 says to do, and you asked > for HTTP 1.0 > behavior.

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread David Schwartz
> Hi > Thanks for reply. > > In fact, I'm not sure why apache closes connection even if I set KeepAlive > to On in httpd.conf. Because that's what HTTP version 1.0 says to do, and you asked for HTTP 1.0 behavior. If it didn't, how would the client know when it got the entire request? > If I send

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Thanks for reply. In fact, I'm not sure why apache closes connection even if I set KeepAlive to On in httpd.conf. If I send "HTTP/1.1" request will it also close the socket after reply? -Dima David Schwartz wrote: > > >> Hello! >> >> I use openssl to work with apache server via https.

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Thanks for reply. In fact, I'm not sure why apache closes connection even if I set KeepAlive to On in httpd.conf. If I send "HTTP/1.1" request will it also close the socket after reply? -Dima David Schwartz wrote: > > >> Hello! >> >> I use openssl to work with apache server via https.

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread David Schwartz
> Hello! > > I use openssl to work with apache server via https. > But I see a strange situation when the second and the third calls > to send() > in my test-case read 0 bytes from socket. > Can you provide here any help? Why is that surprising? That's exactly what I would expect to happen. When

Re: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Marek! Marek.Marcola wrote: > > Hello, >> I use openssl to work with apache server via https. >> But I see a strange situation when second and third calls to send() in > my test-case read >> 0 bytes from socket. >> Can you provide here any help? > You should not use names like "send" in your

Re: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-10 Thread Marek . Marcola
Hello, > I use openssl to work with apache server via https. > But I see a strange situation when second and third calls to send() in my test-case read > 0 bytes from socket. > Can you provide here any help? You should not use names like "send" in your program. send() is already defined system cal