Apache 2 (2.0.43 and 2.0.44 at least) ignores attempts to set the send buffer size on a socket in apr_socket_opt_set apr/network_io/win32/sockopt.c.

Addition of:
    case APR_SO_SNDBUF:
            if (setsockopt(sock->socketdes, SOL_SOCKET, SO_SNDBUF, (void *)&on,
                sizeof(int)) == -1) {
                   return apr_get_netos_error();
            }
            break;
to the switch on 'opt' makes Apache 2 on Windows obey the send buffer size configuration options -- which seems to make a big performance difference in some cases.

Is there any reason not to include this?  Could someone commit such a change to Apache 2?

--
Jess Holle

Reply via email to