Article View: borland.public.cppbuilder.internet.socket
Article #1848Re: Slow ACK'ing
From: Josh Arnold
Date: Wed, 11 Oct 2006 15:30
Date: Wed, 11 Oct 2006 15:30
37 lines
2229 bytes
2229 bytes
Bob- Thanks! I knew I was missing something. Is t the timeout? What should thins be initialized as? -Josh "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com... > 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:
<452d0c28$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!out02b.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.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> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.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: "Josh Arnold" <jarnold@atterotech.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> Subject: Re: Slow ACK'ing Date: Wed, 11 Oct 2006 11:30:04 -0400 Lines: 39 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: <452d0c28$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160580136 70.89.2.105 (11 Oct 2006 08:22:16 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!out02b.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail