This is the mail archive of the gdb-patches@sources.redhat.com 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]

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



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