[Libevent-users] Re: event_queue_remove error

arthur mail2arthur at gmail.com
Wed Nov 7 16:37:15 EST 2007


Hi All,

Problem resolved. With the error condition, my proxy may event_add the accept event twice, if there is a client connecting before the duplicated event_add, error raised.

Cheers,

Arthur
  ----- Original Message ----- 
  From: arthur 
  To: libevent-users at monkey.org 
  Sent: Wednesday, November 07, 2007 2:36 PM
  Subject: event_queue_remove error


  Hi All,

  I am negative testing my socket proxy (the up sever is not running and the client makes 3k connections). On Ubuntu (I don't have this problem on Solaris), some times (around one out of 3 tests) after 200 connections, the proxy exit with error '[err] event_queue_remove: 0x804e280(fd 4) not on queue 8'. 

  The listen socket of my proxy is fd 4 and I only run one process to listen/accept. The proxy will close client connection after connect error (either from connect call or from read event). One thing I don't understand is that even after the proxy exits, there are still 8 ESTABLISHED connections to the listen port, and looks the test client hangs (keep the current connections but won't try to create new connection). The test client is built with libio and will make new connection to proxy every 10ms (triggered by timer event).

  So far all I am is a libevent user. Before I gdb to libevent, can any guru here have any idea about this error.

  BTW, what is the good way to debug this kind of error. Is there any way to log libevent activities without big impact on the performance.

  Thanks in advance.

  Arthur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20071107/dc9b5aba/attachment-0001.htm


More information about the Libevent-users mailing list