The following is the output from running the attached scripts. - Python 2.4a1 # ./asyncore_test.py Request Handler Class: http_request_handler Connection from 5 ('192.168.100.100', 47858) Keyboard interrupt, stopped. 1617998 function calls in 5.254 CPU seconds Ordered by: internal time, call count ncalls tottime percall cumtime percall filename:lineno(function) 134833 1.356 0.000 4.990 0.000 asyncore.py:96(poll) 134831 0.526 0.000 0.800 0.000 asynchat.py:170(writable) 134830 0.485 0.000 1.391 0.000 asynchat.py:152(handle_write) 134830 0.466 0.000 1.857 0.000 asyncore.py:372(handle_write_event) 134830 0.447 0.000 2.304 0.000 asyncore.py:75(write) 134830 0.417 0.000 0.906 0.000 asynchat.py:210(initiate_send) 134830 0.364 0.000 0.489 0.000 asynchat.py:186(refill_buffer) 134831 0.274 0.000 0.274 0.000 asynchat.py:261(is_empty) 1 0.265 0.265 5.254 5.254 asyncore.py:160(loop) 134833 0.198 0.000 0.198 0.000 asyncore.py:265(readable) 134833 0.172 0.000 0.172 0.000 asyncore.py:268(writable) 134831 0.160 0.000 0.160 0.000 asynchat.py:166(readable) 134830 0.125 0.000 0.125 0.000 asynchat.py:258(__len__) 1 0.000 0.000 0.000 0.000 socket.py:162(close) 1 0.000 0.000 0.000 0.000 asyncore_test.py:59(handle_accept) 4 0.000 0.000 0.000 0.000 :1(fileno) 1 0.000 0.000 0.000 0.000 asynchat.py:62(__init__) 1 0.000 0.000 0.000 0.000 asyncore_test.py:11(__init__) 2 0.000 0.000 0.000 0.000 asyncore.py:67(read) 2 0.000 0.000 0.000 0.000 asyncore.py:358(handle_read_event) 1 0.000 0.000 0.000 0.000 asyncore.py:186(__init__) 1 0.000 0.000 0.000 0.000 asynchat.py:86(handle_read) 1 0.000 0.000 0.000 0.000 asyncore.py:242(set_socket) 1 0.000 0.000 0.000 0.000 socket.py:167(accept) 1 0.000 0.000 0.000 0.000 asyncore.py:338(close) 1 0.000 0.000 0.000 0.000 socket.py:153(__init__) 1 0.000 0.000 0.000 0.000 asynchat.py:252(__init__) 1 0.000 0.000 0.000 0.000 asyncore.py:226(del_channel) 1 0.000 0.000 0.000 0.000 asyncore.py:298(accept) 1 0.000 0.000 0.000 0.000 asynchat.py:155(handle_close) 1 0.000 0.000 0.000 0.000 asyncore.py:320(recv) 1 0.000 0.000 0.000 0.000 asynchat.py:74(set_terminator) 1 0.000 0.000 0.000 0.000 asyncore.py:220(add_channel) 0 0.000 0.000 profile:0(profiler) - Python 2.3.3 # ./asyncore_test.py Request Handler Class: http_request_handler Connection from 5 ('192.168.100.100', 48185) Keyboard interrupt, stopped. 38 function calls in 23.545 CPU seconds Ordered by: internal time, call count ncalls tottime percall cumtime percall filename:lineno(function) 3 23.545 7.848 23.545 7.848 asyncore.py:94(poll) 1 0.000 0.000 0.000 0.000 socket.py:161(close) 1 0.000 0.000 0.000 0.000 asyncore.py:340(recv) 1 0.000 0.000 0.000 0.000 asyncore_test.py:59(handle_accept) 1 0.000 0.000 0.000 0.000 socket.py:166(accept) 2 0.000 0.000 0.001 0.000 asyncore.py:67(read) 2 0.000 0.000 0.000 0.000 asyncore.py:378(handle_read_event) 1 0.000 0.000 23.545 23.545 asyncore.py:180(loop) 4 0.000 0.000 0.000 0.000 :1(fileno) 1 0.000 0.000 0.000 0.000 asynchat.py:85(handle_read) 1 0.000 0.000 0.000 0.000 asynchat.py:61(__init__) 1 0.000 0.000 0.000 0.000 asyncore.py:358(close) 1 0.000 0.000 0.000 0.000 asyncore_test.py:11(__init__) 1 0.000 0.000 0.000 0.000 asyncore.py:241(del_channel) 1 0.000 0.000 0.000 0.000 asyncore.py:203(__init__) 3 0.000 0.000 0.000 0.000 asyncore.py:279(readable) 1 0.000 0.000 0.000 0.000 asyncore.py:235(add_channel) 1 0.000 0.000 0.000 0.000 socket.py:152(__init__) 1 0.000 0.000 0.000 0.000 asyncore.py:256(set_socket) 1 0.000 0.000 0.000 0.000 asynchat.py:251(__init__) 1 0.000 0.000 0.000 0.000 asynchat.py:154(handle_close) 3 0.000 0.000 0.000 0.000 asyncore.py:288(writable) 1 0.000 0.000 0.000 0.000 asyncore.py:318(accept) 1 0.000 0.000 0.000 0.000 asynchat.py:169(writable) 1 0.000 0.000 0.000 0.000 asynchat.py:165(readable) 1 0.000 0.000 0.000 0.000 asynchat.py:260(is_empty) 1 0.000 0.000 0.000 0.000 asynchat.py:73(set_terminator) 0 0.000 0.000 profile:0(profiler)