0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 03:52:28 +02:00

Set socket buffers (SO_SNDBUF and SO_RCVBUF) immediately after

socket is created rather than waiting until after connect/listen.

Version 2.1.1d


git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5514 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
James Yonan 2010-03-30 04:20:55 +00:00
parent 8c47de7dce
commit 2b9b4c8a2d
2 changed files with 5 additions and 4 deletions

View File

@ -1291,6 +1291,10 @@ link_socket_init_phase1 (struct link_socket *sock,
else if (mode != LS_MODE_TCP_ACCEPT_FROM)
{
create_socket (sock);
/* set socket buffers based on --sndbuf and --rcvbuf options */
socket_set_buffers (sock->sd, &sock->socket_buffer_sizes);
resolve_bind_local (sock);
resolve_remote (sock, 1, NULL, NULL);
}
@ -1493,9 +1497,6 @@ link_socket_init_phase2 (struct link_socket *sock,
}
}
/* set socket buffers based on --sndbuf and --rcvbuf options */
socket_set_buffers (sock->sd, &sock->socket_buffer_sizes);
/* set misc socket parameters */
socket_set_flags (sock->sd, sock->sockflags);

View File

@ -1,5 +1,5 @@
dnl define the OpenVPN version
define(PRODUCT_VERSION,[2.1.1c])
define(PRODUCT_VERSION,[2.1.1d])
dnl define the TAP version
define(PRODUCT_TAP_ID,[tap0901])
define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])