This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: auto-retry TCP connections for "target remote"


On Sun, Dec 28, 2008 at 03:08:31PM +0400, Joel Brobecker wrote:
> I wonder if it wouldn't be both simpler and more general to do everything
> at the remote.c level.Something like replacing the call to serial_open ()
> by a loop that calls serial_open a few times until we either succeed or
> exceed the number of retries. What do others think? 

Sandra's patch has both an on/off switch and a total retry time.
I think that's a little more user-friendly than a retry count;
"try for 30 seconds" instead "try 5 times".  I'm not sure how we'd do
that if it wasn't implemented in ser-tcp.c, though...

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]