LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > After upgrade to .19: POST requests hang!

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 07:06 AM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
Default 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.
Reply With Quote
  #2  
Old 08-15-2006, 07:11 AM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
The same happens with the 404 error handler setup.
Reply With Quote
  #3  
Old 08-15-2006, 07:18 AM
andreas andreas is offline
Senior Member
 
Join Date: Aug 2006
Posts: 91
Sorry, the problem is not LSWS .19, but LSAPI 1.4! With 1.3 everything works.
Reply With Quote
  #4  
Old 08-15-2006, 08:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thanks. Will investigate.
Reply With Quote
  #5  
Old 08-15-2006, 08:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #6  
Old 08-16-2006, 01:52 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Ruby LSAPI 1.5 has been released to address this issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"lscgid: request validation failed!" after upgrade from 3.0RC1 / RC2 to 3.0 release jzx23 Install/Configuration 6 07-02-2007 08:38 AM
2.2.5 upgrade 3.1 admin host failed joe Install/Configuration 2 05-06-2007 03:29 PM
2.1.19: small bug during upgrade sofatime Bug Reports 0 08-12-2006 10:12 AM
requests time out (sometimes...) sofatime Install/Configuration 23 08-09-2006 10:58 AM
404-Handler does not work with POST requests andreas Ruby/Rails 2 08-03-2006 07:39 AM


All times are GMT -7. The time now is 04:15 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.