Article View: borland.public.cppbuilder.internet.socket
Article #1846Slow ACK'ing
From: Josh Arnold
Date: Wed, 11 Oct 2006 13:05
Date: Wed, 11 Oct 2006 13:05
34 lines
2040 bytes
2040 bytes
Hello,
I've posted about a few issues in regards to the TTcpClient socket component
and scokets in general lately.
My new problem is that when ACK'ing back to the server after receiving the
data, the ACK is taking around 200ms. Completely unacceptable for the
application and I'm obviously doing something wrong.
Here's an example of the exchange.
GUI Server
Send ASCII cmd------->
<--------------------ACK cmd received(<1ms)
<--------------------PSH Data in response to CMD (99ms this too is slow
and we're working on it)
ACK Data received------>(200 ms after data received from server)
One thing noticeable is that the window size for the GUI is always set at
65535. That seemed a bit strange to me. I am using SendText and
ReceiveText for
handling socket i/o. My assumption is that this is lower level in the stack
though.
Other notes, the data size for each packet is quite small. So we are
typically sending a larger number of small packets rather than one large
packet.
Does anyone have a suggestion of things to look at or try, in order to get
the delay times down to a reasonable number.
Thanks,
Josh
Technical Details
Message-ID:
<452cea31$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74648bce769a50c7,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Josh Arnold" <jarnold@atterotech.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Slow ACK'ing Date: Wed, 11 Oct 2006 09:05:12 -0400 Lines: 36 Organization: AtteroTech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 70.89.2.105 Message-ID: <452cea31$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160571441 70.89.2.105 (11 Oct 2006 05:57:21 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail