Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-08-04 Thread Ger Hobbelt
>> As I mentioned before, TCP is a stream protocol, not a message >> protocol, so when you expect to receive all data before sending >> another request over the same TCP socket, that is plain *wrong*, >> though some people here appear to think this is possible. > > How would any interactive TCP pro

RE: Last portion SSL_read only after a SSL_write . Please Help.

2008-08-02 Thread petekolle123
while(t--); printf("\n"); t=1000; while(t--); ---joke mode OFF-------- -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-08-01 Thread Martin Simmons
> On Fri, 1 Aug 2008 08:26:55 +0200, Ger Hobbelt said: > > I'm glad this works for you, but be warned: the fact that that cute > hack works in your environment now will not guarantee it will work > elsewhere. The fact that you need to transmit another few ('faked') > bytes to get the data you

RE: Last portion SSL_read only after a SSL_write . Please Help.

2008-08-01 Thread David Schwartz
> Hurrey > I have the solution! > :clap::-D > > If SSL_get_error give SSL_ERROR_NONE > I test with strcmp ( at the end, "") . > because all data from the server must end with "". > If my data is not complete I send CR LF and the last 975 Bytes appeared > SSL_write(mySSL->ssl,"\r\n", 2); So

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-08-01 Thread Ger Hobbelt
RROR_NONE > I test with strcmp ( at the end, "") . > because all data from the server must end with "". > If my data is not complete I send CR LF and the last 975 Bytes appeared > SSL_write(mySSL->ssl,"\r\n", 2); > > Thanks Peter > > &g

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-31 Thread petekolle123
uot;\r\n", 2); Thanks Peter -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p18767511.html Sent from the OpenSSL - Dev mailing list archive at Nabble.com. _

RE: Last portion SSL_read ...

2008-07-30 Thread David Schwartz
> > not send the second request until you have received the entire first > > reply. > yes you are right but the indication for "nothing else to read" > is invalid. Where are you getting this indication from? If your answer is anything other than "my HTTP implementation", then you are confused. O

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-30 Thread Thor Lancelot Simon
On Wed, Jul 30, 2008 at 07:32:26AM -0700, David Schwartz wrote: > > > Hallo > > Okay, you have two choices. > > 1) You can pipeline, where you send the next request before you receive the > entire reply to the previous request. In this case, you may receive the rest > of the reply to the first r

Re: Last portion SSL_read ...

2008-07-30 Thread petekolle123
t-Type: text/xml; charset=UTF-8 Content-Length: 609 SOAPAction: "getActiveEventTypes" empty line 609 bytes Perhabs I have to add something like "Allow SEND ALL DATA AT ONCE" thank you Peter -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_

RE: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-30 Thread David Schwartz
> Hallo Okay, you have two choices. 1) You can pipeline, where you send the next request before you receive the entire reply to the previous request. In this case, you may receive the rest of the reply to the first request after you send the second. 2) You can not pipeline, where you don't send

Re: Last portion SSL_read ...

2008-07-30 Thread petekolle123
Ok,plz try this: http://www.student.uni-oldenburg.de/rainer.valentin/test/ -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p18731385.html Sent from the OpenSSL - Dev mailing list archive at Nabble.com

Re: Last portion SSL_read ....

2008-07-30 Thread Kyle Hamilton
wrote: > > > > ftp://erbse:[EMAIL PROTECTED]/ > > Please copy this link above in your browser address line > your browser will be able to follow this link > > -- > View this message in context: > http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.

Re: Last portion SSL_read ....

2008-07-30 Thread petekolle123
ftp://erbse:[EMAIL PROTECTED]/ Please copy this link above in your browser address line your browser will be able to follow this link -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p18729136.html Sent from

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-30 Thread Ger Hobbelt
o more to read". > > But this obviously doesn't work. Perhabs doesnt work on w32 machines. > > You are right I have to make the next request when all is read. > The question is, how can I detect the read has finished ? > > > thanks Peter > > > > > > > -- &

Re: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-29 Thread petekolle123
stion is, how can I detect the read has finished ? thanks Peter -- View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p18725602.html Sent from the OpenSSL - Dev

RE: Last portion SSL_read only after a SSL_write . Please Help.

2008-07-29 Thread David Schwartz
> Hallo > > I made a simple SSL Client on win32 > The request and response works perfectly > when the amount of data is small enough > > I made a request with SSL_write > Servers answers with "..200 OK ..." etc > > SSL_read gives 7159 bytes. > SSL_get_error gives allways SSL_ERROR_NONE > and the

Last portion SSL_read only after a SSL_write . Please Help.

2008-07-29 Thread petekolle123
View this message in context: http://www.nabble.com/Last-portion-SSL_read-only-after-a-SSL_write-.--Please-Help.-tp18717834p18717834.html Sent from the OpenSSL - Dev mailing list archive at Nabble.com. __ OpenS