[Twisted-Python] Sending disconnect messages to clients

Chris Norman chris.norman2 at googlemail.com
Tue Mar 22 15:14:37 MDT 2016


OK... ignore me.

I made your test program and it worked fine. So I tried connecting to my 
server with telnet and saw the expected message... So I checked the 
error function which should have been called on the client with the 
particular message to see it was as good as pass...

Sorry for all the messages, everything works fine, panic over!

Thank you for your help with this!


On 22/03/2016 20:37, L. Daniel Burr wrote:
> Hi Chris,
>
> On March 22, 2016 at 3:09:08 PM, Chris Norman 
> (chris.norman2 at googlemail.com <mailto:chris.norman2 at googlemail.com>) 
> wrote:
>
>> Hi Daniel,
>>
>
> [SNIP]
>
>> Actually it's been added to the callback. I think my mail client 
>> wrapped the lines, but issue self.transport.LoseConnection() is the 
>> comment, so self.deferred_disconnect is added to the callback chain.
>>
>> Sorry for the confusion.
>>
>> Anything else which can cause this?
>>
>
> Without seeing the rest of your code, I can’t suggest anything 
> concrete.  You say the client never “sees” the message, but your call 
> to loseConnection() still occurs, so you’re not encountering an 
> exception during the callback chain.  Can you come up with an minimal 
> example the demonstrates the problem?
>
> Daniel
>> L. Daniel Burr
> ldanielburr at me.com <mailto:ldanielburr at me.com>
> (312) 656-8387
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160322/72b706ef/attachment-0002.html>


More information about the Twisted-Python mailing list