aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-01-30Move max_connections check directly inside cowboy_listenerLoïc Hoguin
This is a big change in the internal cowboy API. This should not have any impact on existing applications as only the acceptor is expected to use these API calls. The function cowboy_listener:wait/3 has been removed. max_connections checking now occurs directly in cowboy_listener:add_connection/3. If the pool is full and the acceptor has to wait, then it doesn't return, waiting for a free space to be available. To accomodate these changes, it is now cowboy_listener that will inform the new connection that it is ready by sending {shoot, self()}. This should be a great improvement to the latency of responses as there is one less message to wait for before the request process can do its work. Overall the performance under heavy load should also be improved as we greatly reduce the number of messages sent between the acceptor and the listener process.
2012-01-26Remove a leftover ct:printLoïc Hoguin
2012-01-26Merge branch 'rest_delete_no_call' of https://github.com/bfrog/cowboyLoïc Hoguin
2012-01-26Handle delete better when no delete_resource function is implementedTom Burdick
2012-01-23Fix a case where request body wouldn't get cleaned up on keepaliveLoïc Hoguin
The body was still in the buffer that's being used for the next request and was thus used as a request, causing errors.
2012-01-23Merge branch 'master' of https://github.com/bfrog/cowboyLoïc Hoguin
2012-01-23added test for posting to a rest controller where forbidden returns true on ↵Tom Burdick
a keep alive socket
2012-01-23Remove http_resp_body/0, inline it directly in the record definitionLoïc Hoguin
2012-01-23Rename the type http_status/0 to cowboy_http:status/0Loïc Hoguin
2012-01-23Remove http_cookies/0, inline it directly in the record definitionLoïc Hoguin
2012-01-23Rename the type http_header/0 to cowboy_http:header/0Loïc Hoguin
At the same time rename http_headers/0 to cowboy_http:headers/0.
2012-01-23Rename the type http_version/0 to cowboy_http:version/0Loïc Hoguin
2012-01-23Rename the type http_uri/0 to cowboy_http:uri/0Loïc Hoguin
2012-01-23Rename the type http_method/0 to cowboy_http:method/0Loïc Hoguin
Exported types are much better than include files.
2012-01-23Fix typespecs for calendar:datetime/0 in cowboy_http_staticLoïc Hoguin
2012-01-23Add {halt, Req, State} return value to most REST callbacksLoïc Hoguin
Excluding generate_etag, last_modified, expires and variances.
2012-01-23Rename a lot of HandlerState2 variables to HandlerStateLoïc Hoguin
2012-01-23Improve the return value for cowboy_http_rest:upgrade/4Loïc Hoguin
2012-01-23Improve the listener name in the READMELoïc Hoguin
2012-01-23Merge branch 'multipart' of https://github.com/nox/cowboyLoïc Hoguin
Conflicts: src/cowboy_http_req.erl test/http_SUITE.erl
2012-01-23Add multipart supportAnthony Ramine
2012-01-12Welcome to new developments with 0.5.0Loïc Hoguin
2012-01-09Update version to 0.4.00.4.0Loïc Hoguin
2012-01-09Make REST handlers' put_resource accept true or false return valuesLoïc Hoguin
Followup to 0bb23f2400ed0b65834913c8522a978d986f1f92. As discussed in #119.
2012-01-09Merge branch 'static-etag-hook' of https://github.com/klaar/cowboyLoïc Hoguin
2012-01-09Add HTTP handler loops to the READMELoïc Hoguin
2012-01-07Add etag option to cowboy_http_static handler.Magnus Klaar
2012-01-06Update AUTHORSLoïc Hoguin
2012-01-06Update CHANGELOGLoïc Hoguin
2012-01-06Make REST handlers' process_post accept true or false return valuesLoïc Hoguin
They should return true when it has been processed successfully, or false otherwise, in which case a 500 error is sent. Fixes #119.
2012-01-06Fix the stream_body_set_resp testLoïc Hoguin
It was failing from time to time due to the response being sent as two separate packets.
2012-01-06Fix handler crashes handlingLoïc Hoguin
We try to send a 500 error only if we didn't send the response headers yet. If they were, then we have no way to be sure the response was fully sent, nor should we assume anything about how this will be handled client-side, so we do nothing more and in both cases close the connection.
2012-01-06Move the ensure_response call before ensure_body_processedLoïc Hoguin
We want to reply as soon as possible.
2012-01-06Merge branch 'issue-114-tests' of https://github.com/klaar/cowboy into ↵Loïc Hoguin
gracefully-handle-crashes Conflicts: test/http_SUITE.erl
2012-01-05Merge branch 'static-updates' of https://github.com/klaar/cowboyLoïc Hoguin
2012-01-05only run end_static_dir for http and httpsMagnus Klaar
2012-01-05Add test and doc for content types function.Magnus Klaar
2012-01-05Merge branch 'inet_parse_address_fix' of https://github.com/spawngrid/cowboyLoïc Hoguin
2012-01-04inet_address:parse/1 does not accept binaries as an input, only stringsYurii Rashkovskii
2012-01-04Add R15B to travis-ci's configuration fileLoïc Hoguin
2012-01-03Merge branch 'static-handler-split' of https://github.com/klaar/cowboyLoïc Hoguin
2012-01-03Merge pull request #118 from klaar/travis-versions-fixLoïc Hoguin
Remove R14B and R14B01 from .travis.yml
2012-01-03Remove R14B and R14B01 from .travis.ymlMagnus Klaar
2012-01-03Add note on async threads to cowboy_http_static.Magnus Klaar
2011-12-29Add tests for #114Magnus Klaar
2011-12-28Add built-in cowboy_http_static handler.Magnus Klaar
2011-12-28Add cowboy_http_req:set_resp_body_fun/3 to restMagnus Klaar
2011-12-28Add cowboy_http_req:set_resp_body_fun/3.Magnus Klaar
2011-12-28Add cowboy_http_req:transport/1 function.Magnus Klaar
2011-12-26Use calendar date and time types exported since R14B04Loïc Hoguin
Removes the cowboy_clock:date/0, time/0 and datetime/0 exported types.