Skip to content
This repository
tag: 0.2.0

Sep 05, 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

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

    Loïc Hoguin authored

Aug 23, 2011

  1. Add WebSocket drafts 7, 8, 9 and 10 implementation

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

    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
    Sec-Websocket-Version.
    
    The formatting itself is fairly simple: an uppercase character at
    the start and after dashes, everything else lowercase.
    Loïc Hoguin authored

Aug 11, 2011

  1. Use cowboy_clock types in cowboy_cookies instead of calendar

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

    Loïc Hoguin authored

Aug 10, 2011

  1. Give the ListenerPid to the protocol on startup

    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.
    Loïc Hoguin authored
  2. Introduce cowboy_listener for managing a listener

    Currently only supports limiting the maximum number of
    connections by managing connection pools.
    Loïc Hoguin authored

Jul 26, 2011

  1. Fix cookie tests and specs

    Loïc Hoguin authored
  2. Small cosmetic changes and doc update to the cookie patch

    Loïc Hoguin authored
  3. Tom Burdick

    Fail early in cookie-related API functions

    bfrog authored Loïc Hoguin committed
  4. Tom Burdick

    Implement cookies in cowboy_http_req

    bfrog authored Loïc Hoguin committed
  5. Tom Burdick

    Add cowboy_cookies for cookie creation and parsing

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

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

    Mostly thanks to Magnus Klaar as it took me a while to figure
    out how PropEr tests had to be written.
    Loïc Hoguin authored

Jul 20, 2011

  1. URL decode paths

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

    Should be good for both GET and POST query strings.
    
    This adds https://github.com/klaar/quoted.erl as a dependency.
    Props to klaar for this code.
    Loïc Hoguin authored

Jul 19, 2011

  1. Separate message and packet handling for websockets

    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.
    Loïc Hoguin authored

Jul 18, 2011

  1. Fail fast when a wrong type is given to API functions

    Idea given by bfrog, fixes issue #34.
    Loïc Hoguin authored

Jul 07, 2011

  1. Call websocket_close/4 *after* throwing the error

    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.
    Loïc Hoguin authored
  2. Call Handler:terminate/2 even on error in Handler:handle/2

    This ensures we can cleanup what we did in Handler:init/3.
    Loïc Hoguin authored

Jul 06, 2011

  1. Move recursion out of a try .. catch block.

    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.
    Loïc Hoguin authored
  2. Add documentation for the public interface.

    This is probably not perfect yet but it should be better than
    nothing. We'll improve things with feedback received from the
    many users.
    Loïc Hoguin authored

Jun 30, 2011

  1. Add a link to cowboy_examples in the README

    Loïc Hoguin authored

Jun 29, 2011

  1. Fix the @equiv EDoc tags

    Loïc Hoguin authored

Jun 27, 2011

  1. Add the remaining missing specs

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

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

    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.
    Steven Gravell authored

Jun 21, 2011

  1. Use dialyzer directly instead of through rebar

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

    Loïc Hoguin authored
  3. Hunter Morris

    Pass {ip, Ip} configuration through for TCP and SSL transports

    skarab authored

Jun 07, 2011

  1. Fix a binary warning in cowboy_clock.

    Just a change in the order of arguments of update_rfc1123.
    Loïc Hoguin authored

Jun 06, 2011

  1. Add hibernate support for websockets.

    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.
    Loïc Hoguin authored
Something went wrong with that request. Please try again.