classification
Title: asyncore.file_wrapper does not register its fd to socket_map
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: kimhyunkang
Priority: normal Keywords:

Created on 2010-07-05 02:26 by kimhyunkang, last changed 2010-07-05 02:40 by kimhyunkang. This issue is now closed.

Messages (1)
msg109287 - (view) Author: kimhyunkang (kimhyunkang) Date: 2010-07-05 02:26
In current stable python 2.6, the test code below does nothing, which is inconsistent with other default dispatcher's behavior.

========

import asyncore

class test_reader(asyncore.file_wrapper)
  def writable(self):
    return False

  def handle_read(self):
    print self.recv(4096)

f = open('test.dat', 'r')
reader = test_reader(f.fileno())

asyncore.loop()
History
Date User Action Args
2010-07-05 02:40:30kimhyunkangsetstatus: open -> closed
2010-07-05 02:26:52kimhyunkangcreate