Commit Graph

270 Commits

Author SHA1 Message Date
Ruben Anders 65b0837589
Enable dependabot 2020-08-19 17:54:20 +02:00
Daniel Abramov faea043ec2
Merge pull request #134 from Zoldszemesostoros/patch-1
Make echo server compile
2020-08-17 14:42:29 +02:00
Zoldszemesostoros e7bab13e6d
make echo server compile
The original code failed to compile with "expected item after doc comment" error message
2020-08-17 11:47:00 +02:00
Daniel Abramov 9d67240cab cargo: add author 2020-08-07 18:40:13 +02:00
Daniel Abramov 1de6da9a3c Bump version 2020-08-05 17:39:30 +02:00
Daniel Abramov 939c4d181c
Merge pull request #132 from sdroege/sha-1-0.9
Update to sha-1 0.9
2020-08-05 14:28:58 +02:00
Sebastian Dröge 849f248a94 Update to sha-1 0.9 2020-07-28 09:34:31 +03:00
Daniel Abramov fd7de42347
Merge pull request #110 from najamelan/doc/mib
doc: be precise about max message sizes.
2020-06-24 17:41:41 +02:00
Daniel Abramov 6791dcc0d6
Merge pull request #119 from kids300/master
Fix ws request subportocol lowercase header
2020-06-24 17:41:22 +02:00
Daniel Abramov 744bd87a41
Merge pull request #130 from Krisa/patch-1
Allow statically linking
2020-06-24 17:39:18 +02:00
Christophe Vidal fe4d631c97
Allow statically linking
Solving https://github.com/snapview/tungstenite-rs/issues/118 by using `features= ["tls-vendored"]` in the toml file
2020-06-17 15:43:07 +02:00
Alexey Galakhov 1a729bb362 Release version 0.11.0 2020-06-12 19:32:20 +02:00
Alexey Galakhov bbaa48b4d6
Merge pull request #126 from Dushistov/fix-deprecation
Make tungstenite-rs more safe
2020-05-23 22:39:33 +02:00
Evgeniy A. Dushistov 5a95f12c6d refactoring/apply_mask: reduce number of usage of unsafe to 1
Plus it should be faster now:

apply_mask/fallback/0   time:   [24.282 ns 24.727 ns 25.255 ns]
apply_mask/fast/0       time:   [11.921 ns 11.963 ns 12.011 ns]
apply_mask/fast_safe/0  time:   [7.9340 ns 7.9807 ns 8.0261 ns]

apply_mask/fallback/1   time:   [25.284 ns 25.710 ns 26.124 ns]
apply_mask/fast/1       time:   [20.433 ns 20.476 ns 20.511 ns]
apply_mask/fast_safe/1  time:   [9.3208 ns 9.3833 ns 9.4470 ns]

apply_mask/fallback/2   time:   [16.051 ns 16.160 ns 16.275 ns]
apply_mask/fast/2       time:   [20.564 ns 20.569 ns 20.574 ns]
apply_mask/fast_safe/2  time:   [9.1449 ns 9.1830 ns 9.2189 ns]

apply_mask/fallback/3   time:   [15.386 ns 15.548 ns 15.715 ns]
apply_mask/fast/3       time:   [18.836 ns 18.867 ns 18.917 ns]
apply_mask/fast_safe/3  time:   [8.3092 ns 8.3566 ns 8.4076 ns]
2020-05-23 18:57:09 +03:00
Evgeniy A. Dushistov 9764ac13a1 infra/apply_mask: test more case for apply_mask
make sure that input with len 0,1,2,3 also tested
2020-05-23 18:53:22 +03:00
Alexey Galakhov 3a24ca3f03
Merge pull request #125 from Dushistov/fix-from-for-close-code
Change Into to From for CloseCode to u16 conversation
2020-05-22 10:29:18 +02:00
Evgeniy A. Dushistov de80b9bced Change Into to From for CloseCode to u16 conversation
As stated in standard library documentation:
> One should always prefer implementing From over Into because implementing From automatically
> provides one with an implementation of Into thanks to the blanket implementation in the standard library.

And this provides the way to use u16::from(close_code)
2020-05-22 01:31:08 +03:00
kids300 fb83e8c791 rm to_string 2020-05-08 16:26:45 +08:00
Yan 16a33df195 fix ws subportocol lowercase header 2020-05-08 15:58:55 +08:00
Daniel Abramov 366700342b
Merge pull request #116 from mpdn/patch-1
Make mask public on FrameHeader
2020-05-01 23:18:11 +02:00
Mike Pedersen 1f744f1548
Make mask public on FrameHeader
Without the ability to get the mask, having the `FrameHeader` struct as a public type along with functions like `parse` is somewhat useless. I can't see any reason why it shouldn't be public.
2020-04-25 09:58:51 +02:00
Daniel Abramov 1ef18d54ad
Merge pull request #115 from rijenkii/patch-1
Update base64 dependency to 0.12.0
2020-04-20 11:47:25 +02:00
Rijenkii 4ef8aa981d
Update base64 dependency to 0.12.0 2020-04-20 12:43:12 +07:00
Daniel Abramov 0c429cba94 chore: remove deprecated `description()`
Fixes #111
2020-03-28 20:04:08 +01:00
Daniel Abramov 431b6d9241
Merge pull request #112 from najamelan/feature/get_config
Feature/get config
2020-03-27 13:03:54 +01:00
Naja Melan 9c48226c8f chore: Remove needless closing/opening of the impl block on WebSocketContext. 2020-03-21 17:14:45 +01:00
Naja Melan 1f407f1005 feat: Allow reading the configuration.
This allows wrapper types to correctly split data before creating websocket
messages, guaranteeing to respect the max size.

Notably when the WebSocket is provided by user code.
2020-03-21 17:13:57 +01:00
Naja Melan d17f749914 doc: be precise about max message sizes.
If preferred to avoid abbreviations, it could be called mebibytes.
2020-03-21 16:46:51 +01:00
Alexey Galakhov 17732694d4 trivial: bump version
Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
2020-02-02 21:29:46 +01:00
Alexey Galakhov faf4b598a0
Merge pull request #106 from macpp/firefox-connection
Allow firefox to connect
2020-02-02 03:35:38 +01:00
macpp 0bfc217cfc allow firefox to connect 2020-02-01 22:52:41 +01:00
Alexey Galakhov 6b3423292f trivial: fix clippy warning
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-31 03:13:31 +01:00
Daniel Abramov 61f46be644
Merge pull request #105 from snapview/can-read-write
websocket: add `can_read()` and `can_write()`
2020-01-18 21:24:48 +01:00
Alexey Galakhov 85f211230a websocket: add `can_read()` and `can_write()`
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-17 21:23:38 +01:00
Alexey Galakhov 010266e001 test: autobahn: add strict error reporting
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-13 22:22:42 +01:00
Alexey Galakhov da3acc107e protocol: handle "Connection reset by peer" in closing state
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-13 21:50:04 +01:00
Alexey Galakhov 615bf71748 test: check close with SO_LINGER
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-13 19:09:58 +01:00
Alexey Galakhov 0eecc28cc7 travis: force build fail on autobahn failure
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-08 22:42:51 +01:00
Alexey Galakhov c08f2c72ff client: correct port in request
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-08 13:57:26 +01:00
Alexey Galakhov 9ec11cbc7a client: cover request generation with tests
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
2020-01-08 13:26:40 +01:00
Daniel Abramov 6d8358cd19
Merge pull request #98 from sdroege/http-0.2
Update to http 0.2
2019-12-10 16:12:52 +01:00
Sebastian Dröge c3aff4ae9e Update to bytes 0.5 and input_buffer 0.3 2019-12-10 16:55:02 +02:00
Sebastian Dröge c2f713b6bb Update to http 0.2 2019-12-03 09:48:49 +02:00
Alexey Galakhov 1da9614ab2
Merge pull request #97 from alfiedotwtf/master
Minor grammar fix
2019-11-30 15:26:04 +01:00
Alfie John 7ca9bd6f2f Minor grammar fix 2019-12-01 01:13:54 +11:00
Daniel Abramov 345d262972
Merge pull request #93 from sdroege/http-types
Base HTTP-types (request, headers, response, status code, etc) on the ones from the http crate
2019-11-25 18:03:18 +01:00
Sebastian Dröge e1a5153f40 Bump version to 0.10.0 because of API changes 2019-11-24 18:17:13 +01:00
Sebastian Dröge 88760b8b59 Fix various clippy warnings 2019-11-24 18:05:40 +01:00
Sebastian Dröge 7a4779b6f6 Run everything through rustfmt 2019-11-24 18:05:40 +01:00
Sebastian Dröge f659af4493 Update examples to compile again 2019-11-24 18:05:40 +01:00