[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Problem in receiving HTTP Post request



Hi,
 
I am facing a problem where a HTTP request does not reach my HTTP server (based on libevent). Following is the scenario.
 
1.      1.  _javascript_ Application -> Posts  HTTP request to Browser
2.      2.   Browser sends the request to the HTTP server based on libevent.
 
In a success scenario, at point 2 when the Browser sends the request I can see the debug logs from libevent. The initial few lines are as mentioned below.
 
But in the case of failure, these logs never come. I am trying identify if the request is lost in Browser or the libevent HTTP server is hung somewhere and not able to get incoming HTTP requests. Please note that before this failure there had been multiple successful requests that were received by the HTTP server.
 
Can someone suggest if there is any specific area of code where I can add some more logging to confirm that libevent is free and polling for new requests? And also if you are aware of any possible cause for this.
 
Successful Case of request received by libevent HTTP server.
 
Feb  6 15:15:02 [LIBEVENT:debug]  event_active: 0x4b9768 (fd 22), res 2, callback 0x43f044
Feb  6 15:15:02 [LIBEVENT:debug]  event_process_active: event: 0x4b9768, EV_READ  call 0x43f044
Feb  6 15:15:02 [LIBEVENT:debug]  event_del: 0x4b9768 (fd 22), callback 0x43f044
Feb  6 15:15:02 [LIBEVENT:debug]  event_del: 0x4b9768 (fd 22), callback 0x43f044
Feb  6 15:15:02 [LIBEVENT:debug]  event_del: 0x4b97b0 (fd 22), callback 0x43f3b8
Feb  6 15:15:02 [LIBEVENT:debug]  event_del: 0x4b9768 (fd 22), callback 0x43f044
Feb  6 15:15:02 [LIBEVENT:debug]  event_del: 0x4b97b0 (fd 22), callback 0x43f3b8
Regards,
Alap