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
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to