aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-05-25Refresh the type specifications.Loïc Hoguin
Following discussions on #erlounge. Also fixes compilation in R14B03 and fixes a few underspecs dialyzer warnings.
2011-05-24Automatically start crypto, public_key and ssl if needed.Loïc Hoguin
Following mochiweb and misultin's example here even though I'm not too thrilled about starting them and not stopping but it's optional and the application's author can start/stop them as normal anyway.
2011-05-20Send a meaningful error to error_logger on handler crashes.Loïc Hoguin
Inspired by gen_server and friends. Should fix issue #13.
2011-05-16README: Grammar fixes.Loïc Hoguin
Thanks Mewn!
2011-05-16Merge remote-tracking branch 'nox/code-coverage'Loïc Hoguin
2011-05-16Makefile: Clean build the application before starting tests.Loïc Hoguin
2011-05-16Merge remote-tracking branch 'nox/path-info'Loïc Hoguin
2011-05-16Enable code coverageAnthony Ramine
2011-05-16Document the path info featureAnthony Ramine
2011-05-14Only try to update the Date field once every seconds.Loïc Hoguin
2011-05-14Add the Server header in the HTTP replies.Loïc Hoguin
2011-05-14Add the required Date header in the HTTP replies.Loïc Hoguin
The formatted date is generated and kept up to date regularly by a gen_server process storing it in the cowboy_clock ets table. Then it is retrieved by other processes simply by reading the table.
2011-05-09Add a max_connections transport option.Loïc Hoguin
Limits the number of parallel requests processed at once. Waiting requests are kept in the accept queue. The limit is not explicitly observed, but it should be around the given value at any time. Defaults to 1024. Thanks to ostinelli's benchmark to point out the issue hopefully solved by this and the previous commit.
2011-05-09Increase the default backlog from 128 to 1024.Loïc Hoguin
Improves reliability under heavy load.
2011-05-09Implement path_info featureAnthony Ramine
The dispatcher now accepts '...' as the leading segment of Host and the trailing segment of Path, this special atom matches any remaining path tail. When given "cowboy.bugs.dev-extend.eu", host rule ['...', <<"dev-extend">>, <<"eu">>] matches and fills host_info with [<<"cowboy">>, <<"bugs">>]. When given "/a/b/c/d", path rule [<<"a">>, <<"b">>, '...'] matches and fills path_info with [<<"c">>, <<"d">>].
2011-05-09Remove a superfluous function clause in try_matchAnthony Ramine
2011-05-08Add chunked reply support.Loïc Hoguin
Send the status line and headers using cowboy_http_req:chunked_reply/3, and individual chunks with cowboy_http_req:chunk/2.
2011-05-08Separate building the response head from replying.Loïc Hoguin
2011-05-07Removed a few lines from the README for pedantic correctness.Loïc Hoguin
2011-05-07Merge remote-tracking branch 'nox/improve-readme'Loïc Hoguin
2011-05-07Improve READMEAnthony Ramine
2011-05-07Merge remote-tracking branch 'nox/atom-response-headers'Loïc Hoguin
2011-05-07Greatly improve the README.Loïc Hoguin
Forward me any more questions and I'll continue on improving it.
2011-05-06Allow atoms for response header namesAnthony Ramine
2011-05-05Add headers_huge test, demonstrating issue #3 is fixed.Loïc Hoguin
The previous commit switching to raw recv + erlang:decode_packet/3 works around the OTP bug regarding headers size in http recv.
2011-05-05Switch the HTTP protocol to use binary packets instead of lists.Loïc Hoguin
The server now does a single recv (or more, but only if needed) which is then sent to erlang:decode_packet/3 multiple times. Since most requests are smaller than the default MTU on many platforms, we benefit from this greatly. In the case of requests with a body, the server usually read at least part of the body on the first recv. This is bufferized properly and used when later retrieving the body. In the case of pipelined requests, we can end up reading many requests in a single recv, which are then handled properly using only the buffer containing the received data.
2011-05-04Add cowboy_http_req:port/1.Loïc Hoguin
Returns the port given in the Host header if present, otherwise the default port of 443 for HTTPS and 80 for HTTP is returned.
2011-05-04Makefile: Add separate eunit and ct test rules.Loïc Hoguin
2011-05-04Use http_headers() type in cowboy_http_req:headers/1.Loïc Hoguin
2011-05-03Merge remote-tracking branch 'nox/complete-app-file'Loïc Hoguin
2011-05-03Add cowboy_sup to the list of registered processesAnthony Ramine
Cowboy top supervisor has a name and it should be clearly stated in its .app.src file.
2011-04-30Merge pull request #5 from yrashk/patch-1.Loïc Hoguin
README: added a mentioning of agner dependencies mechanism
2011-04-30Merge pull request #4 from nox/erlang-highlighting.Loïc Hoguin
Use syntax highlighted code block in README.md
2011-04-30Add backlog transport option.Loïc Hoguin
This fixes issues with the http_load benchmark tool. The default backlog option from OTP only queues up to 5 connections, which is way too low for a fast-responding server. Issue initially found thanks to DeadZen bugging me to test cowboy with http_load. Fix found thanks to ostinelli's misultin already having the backlog option which was the one thing it did differently than cowboy.
2011-04-30README: added a mentioning of agner dependencies mechanismYurii Rashkovskii
2011-04-30Use syntax highlighted code block in README.mdAnthony Ramine
GitHub just implemented that and we should use it. https://github.com/blog/832-rolling-out-the-redcarpet
2011-04-30Remove the next_request function always matching its first clause.Loïc Hoguin
2011-04-29Fix type specs for ssl:socket.Loïc Hoguin
Should fix the warnings given by the Dialyzer-current build over at http://dialyzer.softlab.ntua.gr/current/cowboy/ Thanks Kostis for the help.
2011-04-18Remove the include/types.hrl file.Loïc Hoguin
2011-04-18Replace port_number() by ip_port() from kernel/include/inet.hrl.Loïc Hoguin
2011-04-18Replace posix() by atom(), for now.Loïc Hoguin
The type isn't exported by OTP so we don't win much. Also, inet.erl and file.erl define posix() différently, so OTP needs to stop being so confuse in the first place before we can attempt to use it properly.
2011-04-18Move the type application_start_type() into cowboy_app.Loïc Hoguin
2011-04-18Move the dispatcher related types into cowboy_dispatcher.Loïc Hoguin
2011-04-18Rename match() into match_rule().Loïc Hoguin
2011-04-18Rename dispatch() into dispatch_rules().Loïc Hoguin
2011-04-18Rename dispatch_rules() into dispatch_rule().Loïc Hoguin
2011-04-18Move HTTP types definitions to include/http.hrl (for now).Loïc Hoguin
2011-04-18Move the opaque type sslsocket() out of include/types.hrl.Loïc Hoguin
2011-04-18Use the inet:socket() type instead of the user-defined one.Loïc Hoguin
2011-04-17Use the inet:ip_address() type instead of the user-defined one.Loïc Hoguin