Skip to content

Instantly share code, notes, and snippets.

@teburd
Created January 22, 2012 00:13
Show Gist options
  • Save teburd/1654680 to your computer and use it in GitHub Desktop.
Save teburd/1654680 to your computer and use it in GitHub Desktop.
Bad Keep Alive Socket with Cowboy and REST
----------------------------------------------------
2012-01-21 18:13:08.464
get to "/system", headers [], body [], socket undefined
=PROGRESS REPORT==== 21-Jan-2012::18:13:08 ===
supervisor: {<0.218.0>,corbel_session_sup}
started: [{pid,<0.397.0>},
{name,"session_bUgx1WNf"},
{mfargs,
{corbel_session,start_link,[<<"bUgx1WNf">>,36000]}},
{restart_type,temporary},
{shutdown,2000},
{child_type,worker}]
----------------------------------------------------
2012-01-21 18:13:08.482
replying with 403 for url <<"/system">>, method 'GET', headers [{'Host',
<<"localhost">>}]
----------------------------------------------------
2012-01-21 18:13:08.483
get to "/system", headers [{"Cookie","session=testsession"}], body [], socket #Port<0.9108>
----------------------------------------------------
2012-01-21 18:13:08.483
replying with 200 for url <<"/system">>, method 'GET', headers [{'Host',
<<"localhost">>},
{'Cookie',
<<"session=testsession">>}]
----------------------------------------------------
2012-01-21 18:13:08.485
get to "/system/samples", headers [], body [], socket #Port<0.9108>
----------------------------------------------------
2012-01-21 18:13:08.485
get to "/system/samples/0", headers [{"Cookie","session=testsession"}], body [], socket undefined
----------------------------------------------------
2012-01-21 18:13:08.486
replying with 403 for url <<"/system/samples">>, method 'GET', headers [{'Host',
<<"localhost">>}]
=PROGRESS REPORT==== 21-Jan-2012::18:13:08 ===
supervisor: {<0.218.0>,corbel_session_sup}
started: [{pid,<0.409.0>},
{name,"session_JqXrbYJW"},
{mfargs,
{corbel_session,start_link,[<<"JqXrbYJW">>,36000]}},
{restart_type,temporary},
{shutdown,2000},
{child_type,worker}]
----------------------------------------------------
2012-01-21 18:13:08.486
get to "/system/samples", headers [{"Cookie","session=testsession"}], body [], socket #Port<0.9108>
----------------------------------------------------
2012-01-21 18:13:08.492
replying with 200 for url <<"/system/samples">>, method 'GET', headers [{'Host',
<<"localhost">>},
{'Cookie',
<<"session=testsession">>}]
----------------------------------------------------
2012-01-21 18:13:08.499
replying with 404 for url <<"/system/samples/0">>, method 'GET', headers [{'Host',
<<"localhost">>},
{'Cookie',
<<"session=testsession">>}]
----------------------------------------------------
2012-01-21 18:13:08.500
post to "/system/samples", headers [{"Content-Type","application/json"}], body <<"{\"name\":\"Whatever\",\"identifier\":\"None\",\"purity\":5}">>, socket #Port<0.9284>
----------------------------------------------------
2012-01-21 18:13:08.500
replying with 403 for url <<"/system/samples">>, method 'POST', headers [{'Host',
<<"localhost">>},
{'Content-Length',
<<"50">>},
{'Content-Type',
<<"application/json">>}]
=PROGRESS REPORT==== 21-Jan-2012::18:13:08 ===
supervisor: {<0.218.0>,corbel_session_sup}
started: [{pid,<0.414.0>},
{name,"session_Svqo8leO"},
{mfargs,
{corbel_session,start_link,[<<"Svqo8leO">>,36000]}},
{restart_type,temporary},
{shutdown,2000},
{child_type,worker}]
----------------------------------------------------
2012-01-21 18:13:08.500
get to "/system/samples/1", headers [], body [], socket #Port<0.9284>
----------------------------------------------------
2012-01-21 18:13:08.501
request unknown request {http_error,<<"{\"name\":\"Whatever\",\"identifier\":\"None\",\"purity\":5}GET /system/samples/1 HTTP/1.1\r\n">>}
----------------------------------------------------
2012-01-21 18:13:08.501
replying with 400 for url undefined, method 'GET', headers []
- - - - - - - - - - - - - - - - - - - - - - - - - -
rest_SUITE:sample failed on line 167
Reason: {badmatch,{ok,400,
[{"Server","Cowboy"},
{"Date","S...}
- - - - - - - - - - - - - - - - - - - - - - - - - -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment