Wednesday, March 3, 2004

Good Night

Demonstration of success:

exarkun@boson:~$ telnet localhost 56197
Trying ::1...
Connected to localhost.
Escape character is '^]'.

Twisted 1.2.0
username: admin
password: *****
>>> import os
>>> os
<module 'os' from '/usr/lib/python2.3/os.pyc'>
>>> os.getpid()
>>> os
<module 'os' from '/usr/lib/python2.2/os.pyc'>
>>> os.getpid()
>>> Connection closed by foreign host.

Interpretation is left as an exercise for the reader. Suffice it to say that all the dirty hacks in the server melted away tonight, and the transition from supporting only listening ports to supporting connected protocol instances was almost effortless. The interpreter version change was a last minute afterthought that I was happily surprised to see actually work.

No comments:

Post a Comment