Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mathuin's full-sized avatar

Jack Twilley mathuin

View GitHub Profile
@mathuin
mathuin / proxyjson_server.py
Last active August 29, 2015 13:57
Trying to run this test against this code. I get an error about the reactor being unclean. What does that mean in this context?
from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet.error import CannotListenError
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor
import simplejson as json
# Ports available for proxy purposes.
low_port = 5000
high_port = 5100