Article View: borland.public.cppbuilder.internet.socket
Article #1847Re: Slow ACK'ing
From: Bob Gonder
Date: Wed, 11 Oct 2006 14:24
Date: Wed, 11 Oct 2006 14:24
25 lines
1923 bytes
1923 bytes
Josh Arnold wrote: >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. I'll repost my repost from 1/17/2006 See my message from 5/4/2005 50th71db9qmpnog2gldkeqvsfv112h3ano@4ax.com Subject: Re: sendto to same destination more times after eachother fails.? TCP buffers data so the data-to-packetheader ratio is sane. When sending a single integer, the packet is several times the size of the data, quite wastefull, so by default, TCP holds onto the data for a period of time, hoping more data will be sent. If you don't want to wait for the timeout, you need to tell TCP not to wait. Look into this WinSock API command, and parameters.. setsockopt(ClientOutSocket,IPPROTO_TCP,TCP_NODELAY,(char*)&t,sizeof(t));
Technical Details
Message-ID:
<0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<452cea31$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74648bce769a50c7 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Slow ACK'ing Date: Wed, 11 Oct 2006 07:24:47 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> References: <452cea31$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.90.106 X-Trace: newsgroups.borland.com 1160576685 69.69.90.106 (11 Oct 2006 07:24:45 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail