LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Ruby/Rails (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=20)
-   -   After upgrade to .19: POST requests hang! (http://www.litespeedtech.com/support/forum/showthread.php?t=533)

andreas 08-15-2006 07:06 AM

After upgrade to .19: POST requests hang!
 
I upgraded to .19 and noticed that I don't get any reply on POST requests. The application receives the request, but the response never gets to the client. The process that is handling the POST request blocks the connection until I cancel the request. I am using LSAPI 1.4 and the Rewrite-setup for Rails.

andreas 08-15-2006 07:11 AM

The same happens with the 404 error handler setup.

andreas 08-15-2006 07:18 AM

Sorry, the problem is not LSWS .19, but LSAPI 1.4! With 1.3 everything works.

mistwang 08-15-2006 08:24 AM

Thanks. Will investigate.

mistwang 08-15-2006 08:49 AM

Can you please try below see if it is the cause of the problem?
In ruy-lsapi/ext/lsapi/lsruby.c, in function lsapi_read()
comment out
Code:

FD_ZERO( &readfds );
...
If (rb_thread_select(...) < 1 )
{
return Qnil;
}

The rb_thread_select() may block the execution when the post body is small. should not add that in 1.4. :mad:

xing 08-16-2006 01:52 PM

Ruby LSAPI 1.5 has been released to address this issue.


All times are GMT -7. The time now is 02:52 AM.