Docs say SslReceive() and SslRead() are the same, except SslReceive()
returns info on the socket (sender).

A similar issue I've heard from other Ssl users; are you setting the send
timeout, as well? It seems they have to be the same, or at least set
concurrently. Try setting the send and receive timeout to the same value,
each time as needed.

Sounds goofy, but it solved their problem.

-----Original Message-----
From: Henk Jonas
To: Palm Developer Forum
Sent: 8/16/2005 3:11 AM
Subject: Re: SslRead() problem

Philippe Fischer wrote:

> 
> Hello developers,
> I have a problem with the SslRead() function, if there is a small
amount
> of data sended to the device my app hangs 60 seconds in this function
until
> SslRead() returns the data. I've tried setting IOTimeout and
AppNetTimeout
> without a result .
> 

Without having used SSL Lib before: Have you tried to use SslReceive 
with a given timeout (0 for example)? Have you tried to read the data 
byte-wise (if this is possible at all with the underlying encryption 
algorithm)?
I would expect the small amount of data is smaller than the internal 
buffer size. That's why the SslLib is waiting for more data to come to 
fill the buffer before it will be proceed and decrypt. Have a look into 
RbufSize for this.

Regards
Henk

-- 
------------------------------------------------------------------------
-
   Henk Jonas                                            [EMAIL PROTECTED]
   Palm OS ® certified developer

   Please contact me, if you need an off-site contract worker.
------------------------------------------------------------------------
-

-- 
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to