FreeBSD Bugzilla – Attachment 145718 Details for
Bug 192599
zero window and persist timer not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
send.py
send.py (text/x-python), 639 bytes, created by
Jeremiah
on 2014-08-12 16:04:36 UTC
(
hide
)
Description:
send.py
Filename:
MIME Type:
Creator:
Jeremiah
Created:
2014-08-12 16:04:36 UTC
Size:
639 bytes
patch
obsolete
>import select >import socket >import sys >import threading >import time >import os > >s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > >s.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 128*1024) >s.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 4300) > >rcvbuf = s.getsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF) >s.setsockopt(socket.SOL_SOCKET, socket.SO_RCVLOWAT, 4300) > >addr = sys.argv[1] >port = int(sys.argv[2]) > >s.connect((addr, port)) > >#time.sleep(0.001) >for i in range(0, 10): > s.send(100*'s') > >while True: > s.send(10*'s') > (r, w, x) = select.select([s], [], [], 0) > if r: > print "Full" > while True: > time.sleep(10) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 192599
:
145689
|
145717
| 145718