slow ack response leads to long blocking of read()???

gerald.hansink@philips.com gerald.hansink@philips.com
Fri Aug 23 08:07:00 GMT 2002


hi,

using gdbserver with net4 tcp 1.0 on a mips target machine, i saw that the read() call in readchar() blocks
often for more than 35 ms which comes close to the tcp ack delay of the target. putting a dummy write of 1 byte to
the host before the read() in the function readchar (remote-utils.c) the blocking time of read() is reduced to about a few ms.
measuring the packets going from/to target/host the ack response is now also reduced to about 1.5 ms.
looks like read() is blocked until it has send the ack ???

grtz
gerald hansink




More information about the Gdb-patches mailing list