Created
April 8, 2011 22:49
-
-
Save jasom/910889 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG src/state.rl:53: --> parse(OPEN:107) State_exec:53 | |
DEBUG src/state.rl:54: --> register_request(REQ_RECV:110) State_exec:54 | |
DEBUG src/connection.c:487: HTTP MESSAGE | |
DEBUG src/state.rl:57: --> route_request(HTTP_REQ:105) State_exec:57 | |
DEBUG src/server.c:223: Looking for target host: localhost | |
DEBUG src/routing.c:200: Found simple suffix: localhost | |
DEBUG src/routing.c:215: Searching for route: /htchat | |
DEBUG src/routing.c:219: Found simple prefix: /htchat | |
DEBUG src/host.c:127: Found backend at /htchat | |
DEBUG src/state.rl:60: --> http_to_handler(HANDLER:104) State_exec:60 | |
DEBUG src/connection.c:186: SENT: 34f9ceee-cd52-4b7f-b197-88bf2f0ec378 0 /htchat 251:6:METHOD,3:GET,7:PATTERN,7:/htchat,3:URI,7:/htchat,7:VERSION,8:HTTP/1.1,4:PATH,7:/htchat,4:host,14:localhost:6767,10:user-agent,73:curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 GnuTLS/2.10.4 zlib/1.2.3,6:accept,3:*/*,15:x-forwarded-for,9:127.0.0.1,}0:, | |
DEBUG src/connection.c:190: HTTP TO HANDLER: 34f9ceee-cd52-4b7f-b197-88bf2f0ec378 0 /htchat 251:6:METHOD,3:GET,7:PATTERN,7:/htchat,3:URI,7:/htchat,7:VERSION,8:HTTP/1.1,4:PATH,7:/htchat,4:host,14:localhost:6767,10:user-agent,73:curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 GnuTLS/2.10.4 zlib/1.2.3,6:accept,3:*/*,15:x-forwarded-for,9:127.0.0.1,}0:, | |
DEBUG src/state.rl:53: --> parse(REQ_SENT:111) State_exec:53 | |
DEBUG src/handler.c:179: Parsed message with 1 targets, first: 0, uuid: 34f9ceee-cd52-4b7f-b197-88bf2f0ec378, and body: 468 | |
DEBUG src/handler.c:110: Sending raw message to 42 length 468 | |
DEBUG src/io.c:281: Socket was closed, will return only what's available: 0 | |
DEBUG src/connection.c:673: Client closed during read. | |
DEBUG src/state.rl:52: --> close(CLOSE:100) State_exec:52 | |
---------- | |
# here's a sample directory | |
test_directory = Dir(base='tests/', | |
index_file='index.html', | |
default_ctype='text/plain') | |
# a sample proxy route | |
web_app_proxy = Proxy(addr='summerfall', port=8080) | |
htchat_dir = Dir(base='htchat/', | |
index_file='index.html', | |
default_ctype='text/plain') | |
# a sample of doing some handlers | |
htchat_app = Handler(send_spec='tcp://127.0.0.1:9999', | |
send_ident='54c6755b-9628-40a4-9a2d-cc82a816345e', | |
recv_spec='tcp://127.0.0.1:9998', recv_ident='', | |
protocol='tnetstring') | |
handler_test = Handler(send_spec='tcp://127.0.0.1:9997', | |
send_ident='34f9ceee-cd52-4b7f-b197-88bf2f0ec378', | |
recv_spec='tcp://127.0.0.1:9996', recv_ident='' | |
#) | |
,protocol='tnetstring') | |
# your main host | |
mongrel2 = Host(name="localhost", routes={ | |
'/handlertest': handler_test | |
'/htchat' : htchat_dir | |
'/htchat/app' :htchat_app | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment