Search results

  1. G

    Fibers (rails, ruby 1.9) and SAPI

    Did you plan support Fibers in sapi? What is Fibers? It is async no- blocking rails instances that can handle more that 1 request at the same time (no threads!). More info you can get here: http://blog.envylabs.com/2010/07/no-callbacks-no-threads-ruby-1-9/ I tested it with Thin and...
  2. G

    Server don't restart if new request comming

    maybe this is not bug - but when client establish connection with server and send request quicker that keep-alive connection timeout server will not shutdown lest say our server has 5 second timeout and 2000 max request. in worst scenario server will restart after 2,7h. Maybe it is...
  3. G

    Rails 3.0 lsapi runner

    For all who want run rails 3 with litespeed web server i wrote rails3 runner http://github.com/madmax/lsws-rails3-runner it works good with ruby 1.9.x (it should works with ruby 1.8 but i didn't tested it yet) It won't works with older rails (without config.ru)
  4. G

    ruby lsapi removes RAILS_ROOT value from ENV

    after include lsapi it removes RAILS_ROOT varible from ENV why? also why include lsapi chdir to rails_root? rails_runner do this! (i think it is bad design that include makes something like that) require "rubygems" ENV["RAILS_ROOT"] = "./" puts "BEFORE: #{ENV["RAILS_ROOT"]}" require...
  5. G

    Rails 3.0 beta & ruby 1.9.1 don't works

    Currently lsapi can't run rails 3 beta i fixed some issuses but still get errors. Here is my railsrunner (only for test with hardcoded paths): #!/usr/bin/env ruby ENV['RAILS_ROOT'] = "/Users/madmax/Sites/rails3-test" Dir.chdir(ENV['RAILS_ROOT']) #require 'lsapi' require...
  6. G

    [RESOLVED] Env['http_x_forwarded_for']

    Litespeed don't set HTTP_X_FORWARDED_FOR varible in ENV (ruby lsapi 4.0) in php lsapi all works ok.
  7. G

    [RESOLVED] Restart problem (old server isn't killed)

    After swith to Litespeed 4.0.12 enterprise (before i use standard version) i have problem with restarting Litespeed version: freebsd 64bit ent 4.0.12 Before restarting: root@core2:~# ps aux |grep lshttp www 33858 0.2 0.1 11572 6504 ?? D 8:40PM 0:00.09 ./lshttpd...
  8. G

    my rails runner

    I want share with you my modified RailsRunner it works only with rack rails 2.3 i had separate RailsRunner for older version to if somone want i can post it too There is a few modifications: 1. Process name changed now we see what is process name it looks like: 91436 ?? S...
  9. G

    Bad encoding

    I'm using litespeed 4.0.12 sometimes server has problem with encoding js/css as gzip Users gets something like this in webbrowsers: it is in polish but meen: bad content encoding. It is hard to reprodice this problem but when it happend again i will try send more informations (maby headers)...
  10. G

    upload files problem

    It happends sometimes: when i uploading files it don't finish request: 2009-12-07 12:10:26.923 [NOTICE] [127.0.0.1:58421-0#fdb.dev] Content len: 224961, Request line: POST /contents/upload?format=js&form_type=poster&form_id=1&random=0.8401927328668535 HTTP/1.1 2009-12-07 12:10:26.923...
  11. G

    share php instances

    Is possible to share instance betwen virtual host belongs to the same user? For exemple: ExtApp Set UID Mode = DocRoot UID user bob has 5 virtual host and i want share php instance between this vhosts (to save some ram). This share should be only at user level.
  12. G

    lsapi not compatible with ruby 1.9.1 ?

    /opt/ruby19/bin/ruby extconf.rb install ruby-lsapi checking for main() in -lsocket... no creating Makefile make gcc -I. -I/opt/ruby19/include/ruby-1.9.1/i386-darwin10.2.0 -I/opt/ruby19/include/ruby-1.9.1/ruby/backward -I/opt/ruby19/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE...
  13. G

    LSAPI do something wrong with ENV

    Grrrrr... i spend all my day to fix this bug: when we require lsapi gem the ENV var will be lost! In RailsRunner (for 2.3) we have: server = Rack::Handler::LSWS this is rack/lib/rack/handler/lsws.rb and in line 1 we have: require 'lsapi' after this require ENV varible will be...
  14. G

    Rack 1.0.1 don't works god with litespeed

    I have installed rack 1.0.1 gem and it return error on every POST request. The problem is in rack-1.0.1/lib/rack/handler/lsws.rb : 19: rack_input = RewindableInput.new($stdin.read.to_s) in rack 1.0.0 it was something like this: rack_input = StringIO.new($stdin.read.to_s) after this change...
  15. G

    closing inactive connections?

    It is posible to litespeed close inactive connections? I have freebsd version and after some time there are many ESTABLISHED connections but when i check traffic on them (tcpdump) there are no packets. PS. KeepAlive is turned off :)
  16. G

    Rails 2.2 cache_classes problem.

    Rails 2.2 is almost done. I'm testing rc release and in railties/lib/initializer they add require_dependency As far as i remember litespeed lsapi has problem with this. Let me explain: When we turn on (in production mode) config.cache_classes = true Then rails 2.2 will load all models...
  17. G

    Rails preformance killer?

    anyone try this kind of tests? PL source (you can use google translate). http://blog.zabiello.com/articles/2008/06/04/passenger2-ruby-enterprise
  18. G

    Freebsd 7.0 version?

    Is there posibility to release litespeed for freebsd 7.0? some libs are upgraded: lshttpd: libcrypt.so.3 => /lib/libcrypt.so.4 (0x2823b000) libm.so.4 => /lib/libm.so.5 (0x28254000) libc.so.6 => /lib/libc.so.7 (0x28269000)
  19. G

    Rewrite Map

    I have problem with rewrite map when i specify: txt:/daten/www/fdb.pl/shared/data/cache/urlMap.txt it wont work but when: txt:/opt/lsws/mapa.txt it works. I checked file and directories permission and all is ok. Mayby on debug litespeed should notify if he load map file or why not?
  20. G

    .htaccess files problem

    I setup litespeed as proxy to apache hosting my subversion. When i try commit .htaccess i get 403 error. (when i commiting directly it works ok) How can i fix this?
Top