After upgrade to .19: POST requests hang!

Discussion in 'Ruby/Rails' started by andreas, Aug 15, 2006.

  1. andreas

    andreas New Member

    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.
  2. andreas

    andreas New Member

    The same happens with the 404 error handler setup.
  3. andreas

    andreas New Member

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

    mistwang LiteSpeed Staff

    Thanks. Will investigate.
  5. mistwang

    mistwang LiteSpeed Staff

    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:
  6. xing

    xing LiteSpeed Staff

    Ruby LSAPI 1.5 has been released to address this issue.

Share This Page