support for adjusting the socket buffer sizes through session_settings

This commit is contained in:
Arvid Norberg
2009-05-01 04:59:15 +00:00
parent 6ca1c191b6
commit 84dda7b617
6 changed files with 41 additions and 0 deletions

View File

@@ -3357,6 +3357,9 @@ that will be sent to the tracker. The user-agent is a good way to identify your
bool lock_disk_cache;
int max_rejects;
int recv_socket_buffer_size;
int send_socket_buffer_size;
};
``user_agent`` this is the client identification to the tracker.
@@ -3702,6 +3705,13 @@ while a peer is choked before the peer is considered abusive and is
disconnected.
``recv_socket_buffer_size`` and ``send_socket_buffer_size`` specifies
the buffer sizes set on peer sockets. 0 (which is the default) means
the OS default (i.e. don't change the buffer sizes). The socket buffer
sizes are changed using setsockopt() with SOL_SOCKET/SO_RCVBUF and
SO_SNDBUFFER.
pe_settings
===========