[Ace-users] Using ACE_Svc_Handler::msg_queue() for buffering is slow
jebarker at gmail.com
Mon Nov 5 09:09:59 CST 2007
You're right, and now that I'm setting it correctly performance is
Thanks for your help!
On Nov 5, 1:44 pm, schm... at dre.vanderbilt.edu (Douglas C. Schmidt)
> >My mistake, in this case it was actually calling send more than I
> >thought it was (using strace to verify). Nagle's algorithm does seem
> >the likely candidate.
> >I'm left wondering if I've failed to set TCP_NODELAY correctly:
> >int Param = 1;
> >this->peer().set_option(0, TCP_NODELAY, &Param, sizeof(Param));
> >inside the constructor for the ACE_Svc_Handler?
> You seem to be setting this incorrectly. Please see Chapter 3 of
> C++NPv1 <www.cs.wustl.edu/~schmidt/ACE/book1/> for instructions on how
> to do this or grep for TCP_NODELAY in the ACE tests and follow the
> example there.
> Dr. Douglas C. Schmidt Professor and Associate Chair
> Electrical Engineering and Computer Science TEL: (615) 343-8197
> Vanderbilt University WEB:www.dre.vanderbilt.edu/~schmidt
> Nashville, TN 37203 NET: d.schm... at vanderbilt.edu
More information about the Ace-users