Newbie: Keep TCP socket open

Ghirai ghirai at ghirai.com
Mon May 19 17:45:00 EDT 2008


On Mon, 19 May 2008 20:25:57 +0100
"Alan Wright" <alan.wright at volubill.com> wrote:

> Thanks for the feedback.
> 
> Using the socket in a list is great
> 
> However, as i imagined, I now get a limit of around 1500 conns before
> the system crashes out, also i have noticed, that the ports loop back
> to 1025 when they hit 5000.
> 
> Any ideas on how to make the list/socket get to around 50K
> 
> TIA
> 

Try to use scapy to send raw empty packets with S flag set.
Also use Linux/BSD if you're trying this on Windows.

-- 
Regards,
Ghirai.



More information about the Python-list mailing list