<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 10, 2013, at 9:38 PM, Paul Sajna <<a href="mailto:sajattack@gmail.com">sajattack@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><span style="font-family: arial, sans-serif; font-size: 13px;">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.</span><div style="font-family: arial, sans-serif; font-size: 13px;"><br></div><div style="font-family: arial, sans-serif; font-size: 13px;"><a href="http://stackoverflow.com/questions/16379504/port-object-has-no-attribute-socket/16380253?noredirect=1#comment23490486_16380253" target="_blank">http://stackoverflow.com/questions/16379504/port-object-has-no-attribute-socket/16380253?noredirect=1#comment23490486_16380253</a></div></div></div></blockquote><br></div><div>Hi Paul,</div><div><br></div><div>I'm sorry you're having a hard time working out how to do what you want with Twisted, but there's already an answer on this question.</div><div dir="auto"><br></div><div dir="auto">The answer tells you to stop using threads, but you don't seem to have stopped using threads.  Add an example that doesn't use threads, or try the example I put in my answer.</div><div dir="auto"><br></div><div dir="auto">Also, Twisted 9.0 is 5 years old at this point.  Many, many bugs have been fixed since then.  You may want to upgrade to a more recent version.</div><div dir="auto"><br></div><div dir="auto">I'm still happy to help you with this if you can explain what, exactly, you still don't understand.</div><div dir="auto"><br></div><div dir="auto">-glyph</div><br></body></html>