Re: Client app hangs in the debugger

[email protected] (Jonas Borgström) 22 Sep 2002 15:57:52 +0200
Newsgroups gmane.network.beep.roadrunner.general
Message-ID <[email protected]>
"Jae Kim" <[email protected]> writes:

> 1.  ( ) text/plain          (*) text/html           
> 
> I think I'm pretty close to solving this problem but I need help.
>  

Does this only happen when you use the MSVC debugger? I mean, is this a 
RoadRunner problem or a MSVC problem?

I haven't noticed this when debugging RoadRunner in Linux.

> The lockup occurs on the client side when a greeting message is sent and is
> waiting for a greeting from the server.  
>  
> Usually the lockup occurs when the client software is running slow and the
> network has little delay.  I can replicate the error consistently when running
> the client with MSVC debugger and on a LAN.  Both the server and the client is
> on the LAN.
>  
> Over the internet things are much better.  The lockup rarely occurs but it
> does occur when the PC is running really slow, usually in the debug
> environment with a lot of stuff going on in the background.
>  
> Seems like some sort of timing issue.
>  

RoadRunner uses GCond to synchronize threads, the MSVC debugger might have 
some problems with them.

> Is there a way to implement a timeout on the blocking calls?  For now I would
> like to do a timeout and do a retry if it doesn't return after some time.

No, currently the functions will block until the operation is done or until
the TCP connection times out. But a selectable timeout value would be nice.

/ Jonas
-- 
Jonas Borgström                  [email protected]
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 10       Cell: +46 (0)70 248 89 58