This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
slow ack response leads to long blocking of read()???
- From: gerald dot hansink at philips dot com
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 23 Aug 2002 15:04:40 +0200
- Subject: slow ack response leads to long blocking of read()???
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