I have a kernel mode network service that uses WSK to accept incoming TCP connections. I’d like to disable the Nagle algorithm but the DDK’s lists of valid socket options does not include SO_SNDBUF. The SO_RCVBUF options is listed but not SO_SNDBUF. It seems strange to exclude SO_SNDBUF unless the Nagle algorithm is only implemented for user mode sockets.
Is it possible to modify SO_SNDBUF with WskControlSocket? If so, will the setting be inherited by all incoming connection accepted on the listening socket?
The DDK states the following for SO_RCVBUF:
“If this socket option (SO_RCVBUF) is set on a listening socket, all incoming connections that are accepted on that listening socket have their receive buffer set to the same size that is specified for the listening socket. A WSK application can call the WskControlSocket function on an accepted socket to override the size of the receive buffer that was inherited from the listening socket.”
Thanks,
Adam