From: Zed Shaw Date: 2006-01-20T20:24:07+09:00 Subject: Re: [ANN] Mongrel 0.1.0 -- A Fast As Hell Mostly Ruby Web Server Thanks Sascha. I actually haven't tried under cygwin. The problem may just be that 15 seconds isn't long enough to start the server and use net/http to grab it as a test. Try changing the Timeout.timeout (15) to 30. It really shouldn't take longer than that. Otherwise I must debug it. Otherwise, it seems to at least be *sort of* working in cygwin. That's really cool. Does the examples/simpletest.rb work at all? Zed A. Shaw http://www.zedshaw.com/ On Jan 20, 2006, at 6:11 AM, Sascha Ebach wrote: > Hi Zed, > > this is awesome. I seem to have the same problem under Cygwin as > Ezra. Here is my output: > > $ rake > (in /cygdrive/h/lib/Ruby/serving/mongrel-0.1.0) > /usr/bin/ruby extconf.rb > checking for main() in -lc... yes > creating Makefile > make > gcc -g -O2 -I. -I/usr/lib/ruby/1.8/i386-cygwin -I/usr/lib/ruby/ > 1.8/i386-cygwin -I. -c http11.c > gcc -g -O2 -I. -I/usr/lib/ruby/1.8/i386-cygwin -I/usr/lib/ruby/ > 1.8/i386-cygwin -I. -c http11_parser.c > gcc -shared -s -Wl,--enable-auto-import,--export-all -L"/usr/lib" - > o http11.so http11.o http11_parser.o -lruby -lc -lcrypt > cp ext/http11/http11.so lib > /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.6.2/ > lib/rake/rake_test_loader.rb" "test/test_http11.rb" "test/ > test_trie.rb" "te > st/test_ws.rb" > ./lib/mongrel.rb:54: warning: already initialized constant > ERROR_404_RESPONSE > ./lib/mongrel.rb:56: warning: already initialized constant CHUNK_SIZE > Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/ > rake_test_loader > Started > Error result after 6 bytes of 15 > .Read 18 string was 18 > ...Running server > Hitting server > E > Finished in 3.207 seconds. > > 1) Error: > test_simple_server(WSTest): > Errno::ECONNRESET: Connection reset by peer > /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread' > /usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill' > /usr/lib/ruby/1.8/timeout.rb:45:in `timeout' > /usr/lib/ruby/1.8/timeout.rb:62:in `timeout' > /usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill' > /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' > /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' > /usr/lib/ruby/1.8/net/http.rb:1988:in `read_status_line' > /usr/lib/ruby/1.8/net/http.rb:1977:in `read_new' > /usr/lib/ruby/1.8/net/http.rb:1046:in `request' > /usr/lib/ruby/1.8/net/http.rb:405:in `post_form' > /usr/lib/ruby/1.8/net/http.rb:545:in `start' > /usr/lib/ruby/1.8/net/http.rb:404:in `post_form' > ./test/test_ws.rb:20:in `test_simple_server' > /usr/lib/ruby/1.8/timeout.rb:45:in `timeout' > ./test/test_ws.rb:11:in `test_simple_server' > > 5 tests, 8 assertions, 0 failures, 1 errors > rake aborted! > Command failed with status (1): [/usr/bin/ruby -Ilib:test "/usr/lib/ > ruby/ge...] > > -Sascha > >> This looks like fun. I tried to install it but got errors. Can >> you see whats wrong here when I run rake? >> root@grunt:~/mongrel-0.1.0# rake >> (in /home/ez/mongrel-0.1.0) >> make >> make: Nothing to be done for `all'. >> cp ext/http11/http11.so lib >> /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/ >> rake-0.7.0/lib/rake/rake_test_loader.rb" "test/test_http11.rb" >> "test/test_trie.rb" "test/test_ws.rb" >> ./lib/mongrel.rb:54: warning: already initialized constant >> ERROR_404_RESPONSE >> ./lib/mongrel.rb:56: warning: already initialized constant CHUNK_SIZE >> Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/ >> rake_test_loader >> Started >> Error result after 6 bytes of 15 >> .Read 18 string was 18 >> ...Running server >> Hitting server >> /usr/local/lib/ruby/1.8/timeout.rb:54:in `open': execution expired >> (Timeout::Error) >> from /usr/local/lib/ruby/1.8/net/http.rb:562:in `connect' >> from /usr/local/lib/ruby/1.8/timeout.rb:48:in `timeout' >> from /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout' >> from /usr/local/lib/ruby/1.8/net/http.rb:562:in `connect' >> from /usr/local/lib/ruby/1.8/net/http.rb:555:in `do_start' >> from /usr/local/lib/ruby/1.8/net/http.rb:544:in `start' >> from /usr/local/lib/ruby/1.8/net/http.rb:404:in `post_form' >> from ./test/test_ws.rb:20:in `test_simple_server' >> ... 11 levels... >> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb: >> 200:in `run' >> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in >> `run' >> from /usr/local/lib/ruby/1.8/test/unit.rb:285 >> from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/ >> rake_test_loader.rb:5 >> I'm looking forward to playing with this. >> Thanks- >> -Ezra Zygmuntowicz >> WebMaster >> Yakima Herald-Republic Newspaper >> http://yakimaherald.com >> ezra@yakima-herald.com >> blog: http://brainspl.at > >