Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Palm > Re: SslLib tim...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 650 of 719
Post > Topic >>

Re: SslLib timeout: SslWrite timeout after timed out SslRead Proble

by "orlinkata" <orlinkata@[EMAIL PROTECTED] > Oct 27, 2006 at 09:27 AM

Hello

Did you reslove your problem?

I have the similar problem. I am using non-blocking sockets. I set the
socket to non-blocking right after the SSL session is established.

I have no problems in sequential calls to SslWrite(). First invoke of
SslRead() reads the incoming data. But every next call to SslRead() and
SslWrite() return -1 and error is set to netErrWouldBlock.

If you call SslRead() with buffer's length _equal_ to the data received
you will not face this problem.

If you are sure that there is a data in the socket you can you SslPeek()
and SslConsume() to implement read operation. But if you call SslPeek()
over an empty buffer you will face again the problem as when you use
SslRead().
Maybe it is because when SslPeek() is called over an empty buffer this
cause read operation over the socket. And the problems come again!
 




 3 Posts in Topic:
SslLib timeout: SslWrite timeout after timed out SslRead Proble
nzanella@[EMAIL PROTECTED  2005-09-05 10:50:11 
Re: SslLib timeout: SslWrite timeout after timed out SslRead Pr
"orlinkata" <  2006-10-27 08:19:42 
Re: SslLib timeout: SslWrite timeout after timed out SslRead Pr
"orlinkata" <  2006-10-27 09:27:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 14:21:26 CDT 2008.