python - increase tcp receive window on linux -



python - increase tcp receive window on linux -

similar setting tcp receive window in c , working tcpdump in linux , why changing value of so_rcvbuf doesn't work?, i'm unable increase initial tcp receive window greater 5888 on ubuntu linux 2.6.32-45

#!/usr/bin/python socket import socket, sol_socket, so_rcvbuf, tcp_window_clamp sock = socket() sock.setsockopt(sol_socket, so_rcvbuf, 65536) sock.setsockopt(sol_socket, tcp_window_clamp, 32768) sock.connect(('google.com', 80))

tcpdump says:

me > google: flags [s], seq 3758517838, win 5840, options [mss 1460,sackok,ts val 879735044 ecr 0,nop,wscale 6], length 0 google > me: flags [s.], seq 597037042, ack 3758517839, win 62392, options [mss 1430,sackok,ts val 541301157 ecr 879735044,nop,wscale 6], length 0 me > google: flags [.], ack 1, win 92, options [nop,nop,ts val 879735051 ecr 541301157], length 0

sysctl -a | grep net.*mem says:

net.core.wmem_max = 131071 net.core.rmem_max = 131071 net.core.wmem_default = 112640 net.core.rmem_default = 112640 net.core.optmem_max = 10240 net.ipv4.igmp_max_memberships = 20 net.ipv4.tcp_mem = 77376 103168 154752 net.ipv4.tcp_wmem = 4096 16384 3301376 net.ipv4.tcp_rmem = 4096 87380 3301376 net.ipv4.udp_mem = 77376 103168 154752 net.ipv4.udp_rmem_min = 4096 net.ipv4.udp_wmem_min = 4096

could there else putting receive window limit on connection?

that looks effects of tcp slow-start. kernel thread 2008 offers explanation (i've linked lastly response in thread):

so_rcvbuf doesn't alter receiver advertised window

if maintain watching stream, window size should increase, maximum set.

python sockets tcp tcpdump setsockopt

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -