search for: http11_parser

Displaying 13 results from an estimated 13 matches for "http11_parser".

2006 Jul 20
6
A few minor warnings from Sun Studio 11
...11.c", line 55: warning: syntax error: empty declaration "http11.c", line 56: warning: syntax error: empty declaration "http11.c", line 57: warning: syntax error: empty declaration "http11.c", line 58: warning: syntax error: empty declaration "ext/http11/http11_parser.rl", line 57: warning: statement not reached I''m not sure what to make of the empty declaration warnings. Confusion caused by macros? I have no clue on the parser. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information....
2008 Apr 24
4
Pure Ruby HTTP parser
...e for trying this out. Anyway, here''s my initial hack. It''s nasty, and presently jams the entire FSM into instance-specific data. Aieee! But it more or less seems to generate similar (albeit not identical) output to the C one: http://git.rubini.us/?p=code;a=blob;f=lib/mongrel/http11_parser.rb.rl;h=508f9bd42b4aad322f357637d52576f780707a2f;hb=868732662abbf4aa571bf2f3d598152467f6f4da I''ve thought about having a Mongrel::HttpParser::FSM module to store the actual Ragel-generated state machine, and pass all ivars from the Mongrel::HttpParser to an execute method then recapture t...
2006 Sep 25
5
HTTP Parser (Regal)
Hi I was interested to see how Mongrel uses Lex/Yacc to parse the HTTP requests using a Regal generated parser. I downloaded the source but do not see the lex and yacc files...
2006 Oct 31
5
mongrel parser for server response
I''m taking a stab at creating a parser to parse the server response using the mongrel parser as a base. Never having used a parser like Ragel before in my life, I''d like some input on the following for parsing an http server response. This is part of my modified version of http11_parser.rl. In particular what would be better than using ''any'' to match the status text? http_number = (digit+ "." digit+) ; HTTP_Version = ("HTTP/" http_number) >mark %http_version ; Http_status_code = (digit){3} >mark %http_status_code ; Http_status_...
2006 Oct 15
14
Mongrel can''t handle some URLs that IE6 sends
IE6 happily sends unsafe* characters unencoded if you''ve typed them into the URL bar of your IE6 window. This could happen if you copy & paste a URL from an email or web page. Mongrel doesn''t seem to handle these properly. In 0.3.13.3 it would print out something like: Sun Oct 15 23:05:38 CST 2006: BAD CLIENT (192.168.1.2): Invalid HTTP format, parsing fails. 0.3.13.5
2006 Aug 26
2
Mongrel grammar file
Hey Zed, any chance you mind sharing the grammar file you use with lemon to create the parser? I''ve been meaning to sit down and learn how to use one of those things. If not, any suggestions on a good resource for learning how to use a LALR parser?
2006 Jun 14
0
uninitialized constant Mongrel::HttpHandler (NameError)
...ecking for main() in -lc... yes creating Makefile make gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c http11.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c http11_parser.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_cleanup.c gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_delete.c gcc -fPIC -g -O2 -I. -I/usr/local/l...
2006 Mar 30
25
Mongrel Web Server 0.3.12 -- Finally Out
Hello Folks, This is the long awaited (like 2 weeks) 0.3.12 release of Mongrel. This release has received heavier testing than previous releases and supports a whole raft of improvements to existing functionality plus some new stuff. For those not clued in, Mongrel is a web server written in (mostly) Ruby. Check the funny dogs and read the docs about it at http://mongrel.rubyforge.org/. The
2006 Oct 13
4
Broken installation of mongrel 0.3.13.4 on Sun OS 5.9
Hi, Anyone succeeded in installing Mongrel on Sun Solaris? It looks like the installation is broken. I have started using Mongrel recently and not sure where to look when something is missing. First the file http11.so was not installed in /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib I''ve resolved that and when tried to start mongrel from the command line I received the
2008 Jun 03
9
clients hang on large PUTs to Mongrel::HttpHandler-based web service
Hi folks, I have a problem with a storage web service our group wrote using Mongrel::HttpHandler We have a consistent problem when using http PUT to this service when the data is larger than about 4 GB. The web service actually retrieves and processes the data, but the clients hang - the TCP connection is still in the ESTABLISHED state on the client side, but the TCP session no longer exists on
2006 Apr 28
4
mongrel error on debian sarge
...ativethread_t'' /usr/lib/ruby/1.8/i486-linux/ruby.h:689: attention : data definition has no type or storage class http11.c:3:20: assert.h : Aucun fichier ou r?pertoire de ce type http11.c:4:20: string.h : Aucun fichier ou r?pertoire de ce type Dans le fichier inclus ? partir de http11.c:5: http11_parser.h:4:23: sys/types.h : Aucun fichier ou r?pertoire de ce type http11.c:6:19: ctype.h : Aucun fichier ou r?pertoire de ce type http11.c: Dans la fonction ? http_field ?: http11.c:72: attention : implicit declaration of function `toupper'' http11.c: Dans la fonction ? header_done ?: http11.c:1...
2006 Jul 03
13
problem starting mongrel
Apologies for the formatting, but this is the error I get when I try to start up mongrel. The app does work under webrick, so I''m not real sure what''s going on here. Thanks for any insight into what''s going on. -j ** Starting Mongrel listening at 0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in `register'': undefined method
2008 Jan 14
29
Ebb Web Server
Hello Mongrel Users, I''m writing a web server called Ebb. It''s written in C, makes use of the Mongrel HTTP parser, and uses libev its event loop. The goal is to be small, fast, and language independent server that can host web frameworks. I have written a small Ruby binding which provides a Rack handler - this will allow Ebb to host Rails, Merb, and other Ruby frameworks. In the