Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.2.0
Commits on Sep 5, 2011
  1. Update version to 0.2.0

    Loïc Hoguin authored
  2. Update AUTHORS file

    Loïc Hoguin authored
  3. Tweak the .travis.yml file

    Loïc Hoguin authored
    We want to run 'make tests' and not that rebar command.
    Also remove R14B as quoted doesn't work with it.
  4. Add .travis.yml file

    Loïc Hoguin authored
Commits on Aug 23, 2011
  1. Add WebSocket drafts 7, 8, 9 and 10 implementation

    Loïc Hoguin authored
    The implementation is only partial for now but should work for
    all browsers implementing it.
  2. Ensure header names are handled in a case insensitive manner

    Loïc Hoguin authored
    To this end we are formatting the header names just like OTP does
    except we do it for names of up to 32 characters, as there are
    widely used header names of more than 20 characters, the limit that
    OTP follows currently. An example of such header name would be
    The formatting itself is fairly simple: an uppercase character at
    the start and after dashes, everything else lowercase.
Commits on Aug 11, 2011
  1. Use cowboy_clock types in cowboy_cookies instead of calendar

    Loïc Hoguin authored
    Until calendar exports them at least.
  2. Add Transport:setopts/2 note for writing protocols

    Loïc Hoguin authored
Commits on Aug 10, 2011
  1. Give the ListenerPid to the protocol on startup

    Loïc Hoguin authored
    Also sends a message 'shoot' that can be received by the protocol
    to make sure Cowboy has had enough time to fully initialize the
    socket. This message should be received before any socket-related
    operations are performed.
    WebSocket request connections are now moved from the pool 'default'
    to the pool 'websocket', meaning we can have a lot of running
    WebSockets despite having a low 'max_connections' setting.
  2. Introduce cowboy_listener for managing a listener

    Loïc Hoguin authored
    Currently only supports limiting the maximum number of
    connections by managing connection pools.
Commits on Jul 26, 2011
  1. Fix cookie tests and specs

    Loïc Hoguin authored
  2. @bfrog

    Fail early in cookie-related API functions

    bfrog authored Loïc Hoguin committed
  3. @bfrog

    Implement cookies in cowboy_http_req

    bfrog authored Loïc Hoguin committed
  4. @bfrog

    Add cowboy_cookies for cookie creation and parsing

    bfrog authored Loïc Hoguin committed
    Based on Mochi Media, Inc.'s work in Mochiweb.
  5. Update quoted to 1.0.3 to fix outstanding issues

    Loïc Hoguin authored
    Magnus Klaar updated the PropEr tests and it should be fine now.
  6. Add a PropEr test for cowboy_dispatcher:split_host/1

    Loïc Hoguin authored
    Mostly thanks to Magnus Klaar as it took me a while to figure
    out how PropEr tests had to be written.
Commits on Jul 20, 2011
  1. URL decode paths

    Loïc Hoguin authored
    This fixes issue #33.
  2. URL decode query strings

    Loïc Hoguin authored
    Should be good for both GET and POST query strings.
    This adds as a dependency.
    Props to klaar for this code.
Commits on Jul 19, 2011
  1. Separate message and packet handling for websockets

    Loïc Hoguin authored
    Improves the readability of websocket handler code by having
    two functions: websocket_handle/3 handles the packets received
    from the socket, removing the tuple construct that was otherwise
    needed, so only websocket_handle(Data, Req, State) is needed now;
    websocket_info/3 handles the messages that the websocket handler
    process received, as websocket_info(Info, Req, State).
    Both functions return values are handled identically by Cowboy
    so nothing changes on that end.
Commits on Jul 18, 2011
  1. Fail fast when a wrong type is given to API functions

    Loïc Hoguin authored
    Idea given by bfrog, fixes issue #34.
Commits on Jul 7, 2011
  1. Call websocket_close/4 *after* throwing the error

    Loïc Hoguin authored
    This ensures that an error thrown in handler_terminate/4 will be
    shown after the error from handler_call/6, in the expected order.
    As we already call WebSocketHandler:terminate/3, this should
    fix issue #23.
  2. Call Handler:terminate/2 even on error in Handler:handle/2

    Loïc Hoguin authored
    This ensures we can cleanup what we did in Handler:init/3.
Commits on Jul 6, 2011
  1. Move recursion out of a try .. catch block.

    Loïc Hoguin authored
    Fixes issue #31.
    Recursion shouldn't happen in a single catch statement or inside
    a try .. catch statement. The only safe construct for catching
    exceptions and perform recursion when everything goes well is
    to put the recursive call inside a try .. of .. catch construct
    in the of .. catch block.
    Otherwise the stack gets filled with exception-related information
    since they can still be caught if we were to send them and unfold
    the whole thing.
    Thanks go to lpgauth for reporting the issue and people on IRC
    for explaining the hows and whys.
  2. Add documentation for the public interface.

    Loïc Hoguin authored
    This is probably not perfect yet but it should be better than
    nothing. We'll improve things with feedback received from the
    many users.
Commits on Jun 30, 2011
  1. Add a link to cowboy_examples in the README

    Loïc Hoguin authored
Commits on Jun 29, 2011
  1. Fix the @equiv EDoc tags

    Loïc Hoguin authored
Commits on Jun 27, 2011
  1. Add the remaining missing specs

    Loïc Hoguin authored
    Found thanks to warn_missing_spec and added with the help of typer.
    Eunit functions do not have specs yet however.
  2. Merge pull request #29 from smarkets/ws-default-ports

    Loïc Hoguin authored
    do not send ports 80 and 443 - browsers get mad
  3. do not send ports 80 and 443 - browsers get mad

    Steven Gravell authored
    Browsers get mad that the returned location address is not the same
    as what they sent, since the :(80|443) is stripped.
    Add a simple eunit test due to existing ct websockets tests not
    covering this case.
Commits on Jun 21, 2011
  1. Use dialyzer directly instead of through rebar

    Loïc Hoguin authored
    Rebar recently removed their dialyzer support options so we're switching
    to plain dialyzer. And as a bonus it works much better!
  2. Merge remote-tracking branch 'skarab/listen-ip'

    Loïc Hoguin authored
  3. @skarab
Commits on Jun 7, 2011
  1. Fix a binary warning in cowboy_clock.

    Loïc Hoguin authored
    Just a change in the order of arguments of update_rfc1123.
Commits on Jun 6, 2011
  1. Add hibernate support for websockets.

    Loïc Hoguin authored
    Return {ok, Req, State, hibernate}
    or {reply, Data, Req, State, hibernate} to hibernate the websocket
    process and save up memory and CPU. You should hibernate processes
    that will receive few messages. So probably most of them.
Something went wrong with that request. Please try again.