Re: Client app hangs in the debugger

"Jae Kim" <[email protected]> Mon, 23 Sep 2002 09:00:35 -0700
Newsgroups gmane.network.beep.roadrunner.general
Message-ID <000601c2631a$5afc9f40$6b7ba8c0@micron>
Hi,

The lockup occurs in the MSVC debugger, Borland C++ Builder debugger and
standalone.  When running standalone, the lookup occurs when Windows is busy
performing operations.

Regards,
Jae


----- Original Message -----
From: "Jonas Borgström" <[email protected]>
To: "Jae Kim" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, September 22, 2002 6:57 AM
Subject: Re: [Roadrunner] Client app hangs in the debugger


"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
_______________________________________________
Roadrunner mailing list
[email protected]
http://lists.codefactory.se/mailman/listinfo/roadrunner