disabling TCP connections, just for one script

cakebread cakebread at gmail.com
Fri Sep 9 22:01:17 CEST 2005


How about this:

import timeoutsocket
timeoutsocket.setDefaultSocketTimeout(0)

This will make all sockets in your Python app fail.

https://svn.plone.org/svn/collective/CMFSquidTool/trunk/timeoutsocket.py




More information about the Python-list mailing list