@
lcdtyph 返回是 0
Type "help", "copyright", "credits" or "license" for more information.
>>> from socket import socket, IPPROTO_TCP, TCP_WINDOW_CLAMP, AF_INET, SOCK_STREAM, SOL_TCP
>>>
>>> s = socket(AF_INET, SOCK_STREAM)
>>>
>>> s.setsockopt(IPPROTO_TCP, TCP_WINDOW_CLAMP, 0)
>>>
>>> s.getsockopt(IPPROTO_TCP, TCP_WINDOW_CLAMP)
0
23:15:01.484753 IP 127.0.0.1.http > 127.0.0.1.62668: Flags [S.], seq 2645892072, ack 98484869, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
23:15:01.521700 IP 127.0.0.1.http > 127.0.0.1.62668: Flags [.], ack 76, win 229, length 0
抓包还是不起作用