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  wrote:
>
> 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#comment23490486_16380253
>
>
> Hi Paul,
>
> 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.
>
> 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.
>
> 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.
>
> I'm still happy to help you with this if you can explain what, exactly,
> you still don't understand.
>
> -glyph
>
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


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 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  wrote:
>>
>> 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#comment23490486_16380253
>>
>>
>> Hi Paul,
>>
>> 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.
>>
>> 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.
>>
>> 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.
>>
>> I'm still happy to help you with this if you can explain what, exactly,
>> you still don't understand.
>>
>> -glyph
>>
>>
>> ___
>> Twisted-Python mailing list
>> Twisted-Python@twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>>
>>
>
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python