diff options
author | Loïc Hoguin <[email protected]> | 2015-03-12 19:22:19 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-03-12 19:22:19 +0100 |
commit | c409897f508eedff8ecc6f0860c9379fcc11bf23 (patch) | |
tree | d5a651df4ef5e8f9c6c6bb77366defa53c686e20 /test/gun_ct_hook.erl | |
parent | ea2de24f18741fc89d7a1dd6a3a0a43f3ccb1fd4 (diff) | |
download | gun-c409897f508eedff8ecc6f0860c9379fcc11bf23.tar.gz gun-c409897f508eedff8ecc6f0860c9379fcc11bf23.tar.bz2 gun-c409897f508eedff8ecc6f0860c9379fcc11bf23.zip |
Add initial Websocket support
All autobahntestsuite tests pass including the permessage-deflate
compression tests.
Some of the tests pass in a non-strict fashion. They are testing
for protocol errors and expect events to happen in a particular
order, which is not respected by Gun. Gun fails earlier than is
expected due to concurrent processing of frames.
The implementation when error occurs during handshake is probably
a bit rough at this point. The documentation is also incomplete
and/or wrong at this time, though this is the general state of
the Gun documentation and will be resolved in a separate commit.
Diffstat (limited to 'test/gun_ct_hook.erl')
-rw-r--r-- | test/gun_ct_hook.erl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/gun_ct_hook.erl b/test/gun_ct_hook.erl new file mode 100644 index 0000000..72db623 --- /dev/null +++ b/test/gun_ct_hook.erl @@ -0,0 +1,21 @@ +%% Copyright (c) 2015, Loïc Hoguin <[email protected]> +%% +%% Permission to use, copy, modify, and/or distribute this software for any +%% purpose with or without fee is hereby granted, provided that the above +%% copyright notice and this permission notice appear in all copies. +%% +%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +-module(gun_ct_hook). + +-export([init/2]). + +init(_, _) -> + ct_helper:start([gun]), + {ok, undefined}. |