async_chat close socket notification

F

F.G.Testa

Hi folks!

How to receive a notification when a async_client is closed?

class AcmePopupChannel(asynchat.async_chat):
....
def handle_close(self):
print 'Closed channel'
def handle_error(self):
print 'Error in channel'

This seems not work for me.
Thanks!

Testa

Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on
win32
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top