[Ace-users] [ace-users] Using ACE_Svc_Handler::msg_queue() for buffering is slow
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Mon Nov 5 07:44:30 CST 2007
Hi,
>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.
Thanks,
Doug
--
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.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list