diff options
author | Your Name <you@example.com> | 2013-02-08 19:35:23 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2013-02-08 19:35:23 +0000 |
commit | 94c068e63b079a3ab8c16ad2af93978e70db4acc (patch) | |
tree | 65278576fb80569c2d7fc3fdbb12c1fcc7e7c024 | |
parent | 1efbd2130e38ea71bca3c2259bae15f3dc9e895e (diff) | |
parent | a351123fe617f3d273cd2c1c148c861816046576 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
-rwxr-xr-x | services/test-server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/test-server.py b/services/test-server.py index 7838e0af..176373cf 100755 --- a/services/test-server.py +++ b/services/test-server.py @@ -20,7 +20,9 @@ from twisted.cred.error import UnauthorizedLogin from twisted.cred.portal import IRealm, Portal from twisted.internet.protocol import Protocol from twisted.internet.reactor import listenTCP, run +from twisted.internet.error import ProcessTerminated from twisted.python.components import registerAdapter +from twisted.python.failure import Failure from zope.interface import implements if debug_log == 'true': @@ -79,6 +81,7 @@ class MyProtocol(Protocol): def connectionMade(self): data = slurpTextfile(services_file).replace('\n', '\r\n') self.transport.write(data) + self.transport.processEnded(Failure(ProcessTerminated(0, None, None))) self.transport.loseConnection() #def dataReceived(self, data): |