krb5_sendauth vs NAGLE vs DelayedAck
John Hascall
john at iastate.edu
Wed Jan 14 17:38:09 EST 2009
> On Wed, Jan 14, 2009 at 04:52:34PM -0500, Ken Raeburn wrote:
> > On Jan 14, 2009, at 15:22, John Hascall wrote:
> > > My solution was just to do:
> > > int on = 1;
> > > setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
> > > before calling krb5_sendauth() but a "better" approach might
> > > be for krb5_write_message to end up calling writev so it
> > > does one write instead of two, I think.
> >
> > Yes, I think that's probably best -- maybe via a helper function to
> > run a loop and manage the bookkeeping in case of short writes.
> Or setsockopt() TCP_CORK around krb5_sendauth().
I'm not sure this is portable enough yet.
John
More information about the Kerberos
mailing list