asyncore: select on UDP socket question

Kragen Sitaker kragen at dnaco.net
Thu Oct 5 01:14:18 EDT 2000


In article <Pine.LNX.4.10.10010041724410.4776-100000 at worf.mcnc.org>,
Feiyi Wang  <fwang2 at mcnc.org> wrote:
>(1) once the server call "asyncore.loop()", I saw a flood of messages
>saying that "write unhandled", obviously "handld_write()" is called, but
>why? no one is writing to that private port.

Perhaps your writable() method is returning true.

>(2) there is always "log: adding channel <asynCE  at 80e9d68>" printed out
>and I can't get rid of it.

Override the 'log' method of dispatcher with one that doesn't print that.

HTH.
-- 
<kragen at pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Perilous to all of us are the devices of an art deeper than we ourselves
possess.
                -- Gandalf the Grey [J.R.R. Tolkien, "Lord of the Rings"]





More information about the Python-list mailing list