[Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-10 Thread Paul Sajna
I'm having a bit of trouble setting up an ssh-type server with twisted. When I shutdown or restart the server, the port remains open. Please have a look at my stackoverflow question. Thank you. http://stackoverflow.com/questions/16379504/port-object-has-no-attribute-socket/16380253?noredirect=1#co

Re: [Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-11 Thread Paul Sajna
I continue to use threads because my application uses a GUI that becomes blocked when the server starts. Also, I am now having a problem where port is undefined until the server is stopped and started again. On 10 June 2013 22:46, Glyph wrote: > > On Jun 10, 2013, at 9:38 PM, Paul Sajna

Re: [Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-11 Thread Paul Sajna
Also, the code shown in the SO post causes the GUI to freeze when attempting to stop the server. On 11 June 2013 18:20, Paul Sajna wrote: > I continue to use threads because my application uses a GUI that becomes > blocked when the server starts. Also, I am now having a problem where por

Re: [Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-12 Thread Paul Sajna
I'm using Tkinter. When I do the reactor.listenTCP(), the server takes over the main thread and the GUI freezes. Could you help me craft a GUI-safe solution? On 12 June 2013 00:06, Glyph wrote: > > On Jun 11, 2013, at 6:20 PM, Paul Sajna wrote: > > I continue to use t