From 134e27145624f3e24c5b2c609e920adcb71fcc68 Mon Sep 17 00:00:00 2001 From: Tom Buckley Date: Tue, 17 Apr 2012 14:13:32 -0400 Subject: [PATCH] Set HOST=''; hard-coded foreman for tbuckley.com --- ec262.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ec262.py b/ec262.py index 8002875..f13f1b4 100755 --- a/ec262.py +++ b/ec262.py @@ -80,6 +80,10 @@ def send_command(self, command, data=None): self.push(command + "\n") def found_terminator(self): + """Process a received command + + Should command have data, set next command + """ if not self.mid_command: command, data_length = self.buffer.split(":", 1) if data_length: @@ -115,7 +119,7 @@ def start_server(self, port=DEFAULT_PORT): print "Starting server on %d" % port self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - self.bind(("127.0.0.1", port)) + self.bind(("", port)) self.listen(1) try: asyncore.loop() @@ -186,7 +190,7 @@ def __init__(self): self.datasource = None def run_job(self): - workers = [("tbuckley.com", 11123)] + workers = [("tbuckley.com", DEFAULT_PORT)] for worker in workers: sc = ServerChannel(worker, self) asyncore.loop()