krb5_sendauth vs NAGLE vs DelayedAck

John Hascall john at iastate.edu
Thu Jan 15 09:41:09 EST 2009


> I think this is fixed in the sources now, with revision 21749.  If you  
> want to try out my change, you can get the changes from
>   http://src.mit.edu/fisheye/changelog/krb5/?cs=21749 
>   ... um, when the fisheye server starts updating again.  Or off the  
> anonsvn server.
> Ken

Ken,

I think you might want to also change krb5_sendauth() to
call krb5int_net_writev() directly (or yet another helper
function!) since krb5_sendauth() will still be doing two
consecutive writes where it does the two version strings:

        outbuf.length = strlen(sendauth_version) + 1;
        outbuf.data = (char *) sendauth_version;
        if ((retval = krb5_write_message(context, fd, &outbuf)))
                return(retval);

        outbuf.length = strlen(appl_version) + 1;
        outbuf.data = appl_version;
        if ((retval = krb5_write_message(context, fd, &outbuf)))
                return(retval);



John



More information about the Kerberos mailing list