Benjamin Sergeant
cbf0b826d0
Merge branch 'master' into user/bsergeant/close_with_params_plus_close_unittest
2019-05-10 19:42:28 -07:00
Dimon4eg
0c689bc382
Improve calculateRetryWaitMilliseconds ( #63 )
...
* improve calculateRetryWaitMilliseconds
* update comment
2019-05-10 19:37:32 -07:00
Kumamon38
0d83ffdf6e
fix ping, fix send frame close ( #49 )
...
* fix ping, fix send frame close
* fixes for data race on _closeCode etc. and fix test
* fixing one TC
* fix waiting forever if no time to change of readyState, and poll never end
* add 1005 code if no status code received
* fixes for 1005 code
* fix test issue
* fix macOS issue
* revert to master tests and renaming
2019-05-10 19:37:32 -07:00
Dimon4eg
e9f4e9647e
Remove redundant iostream includes ( #60 )
2019-05-10 19:35:39 -07:00
Benjamin Sergeant
4e6a57dc07
doc: add reference to the conan file built at https://github.com/Zinnion/conan-IXWebSocket
2019-05-10 19:34:46 -07:00
Dimon4eg
c28951f049
Improve calculateRetryWaitMilliseconds ( #63 )
...
* improve calculateRetryWaitMilliseconds
* update comment
2019-05-10 12:31:21 -07:00
Kumamon38
cb1d1bfd85
fix ping, fix send frame close ( #49 )
...
* fix ping, fix send frame close
* fixes for data race on _closeCode etc. and fix test
* fixing one TC
* fix waiting forever if no time to change of readyState, and poll never end
* add 1005 code if no status code received
* fixes for 1005 code
* fix test issue
* fix macOS issue
* revert to master tests and renaming
2019-05-09 09:21:05 -07:00
Dimon4eg
fa7f0fadde
Remove redundant iostream includes ( #60 )
2019-05-08 13:33:21 -07:00
Benjamin Sergeant
5dbc00bbfe
doc: add reference to the conan file built at https://github.com/Zinnion/conan-IXWebSocket
2019-05-01 21:31:32 -07:00
Benjamin Sergeant
d93f723e68
close with params
2019-05-01 11:29:50 -07:00
Benjamin Sergeant
14ec8522ef
remove un-needed _backgroundThreadRunning variable
2019-05-01 11:09:25 -07:00
Benjamin Sergeant
0c2d1c22bc
Make AutomaticReconnection optional ( #47 )
...
* unittest pass + commands behave as expected
* cleanup
2019-04-29 21:12:34 -07:00
Benjamin Sergeant
372dd24cc7
rename _blocking to _backgroundThreadRunning and invert the naming
2019-04-29 16:54:08 -07:00
Alexandre Konieczny
a9422cf34d
fix data race on _thread
2019-04-29 16:46:16 -07:00
Benjamin Sergeant
9367a1feff
Fix data race in WebSocket where _url is accessed without protection in setThreadName
...
Also fix with url usage + docker container uses fedora and works with tsan
2019-04-25 16:11:46 -07:00
Kumamon38
8ff1339b80
add boolean and add missing protocol error close constant ( #41 )
2019-04-23 04:31:55 -07:00
Benjamin Sergeant
d48bf9249b
indentation / comestic changes
2019-04-19 16:57:38 -07:00
Kumamon38
d7595b0dd0
Real ping ( #32 )
...
* close method change and fix code
* missing mutex
* wip
* renaming and fixes
* renaming, fixes
* added enablePong/disablePong, add tests
* added new test cases
* add 1 test case
* fix gcd name to greatestCommonDivisor
* move ping and ping timeout checks into socket poll, local var in test cases and indent fixes
* indent issue
2019-04-18 09:24:16 -07:00
Benjamin Sergeant
0afb77393b
can send TEXT message (we only support BINARY messages now)
2019-03-22 14:24:22 -07:00
Michael Lu
afe8b966ad
Fixed heartbeat typos ( #22 )
2019-03-19 21:31:43 -07:00
Benjamin Sergeant
2750df8aa7
send can fail silently when sending would block (EWOULDBLOCK return for send) ( #18 )
...
* try to use a pipe for communication
* flush send buffer on the background thread
* cleanup
* linux fix / linux still use event fd for now
* cleanup
2019-03-13 23:09:45 -07:00
Benjamin Sergeant
892ea375e3
add new message type when receiving message fragments
2019-03-11 11:12:43 -07:00
Benjamin Sergeant
3a77e96a05
Feature/send large message ( #14 )
...
* introduce send fragment
* can pass a fin frame
* can send messages which are a perfect multiple of the chunk size
* set fin only for last fragment
* cleanup
* last fragment should be of type CONTINUATION
* Add simple send and receive programs
* speedups receiving + better way to wait for thing
* receive speedup by using linked list of chunks instead of large array
* document bug
* use chunks to receive data
* trailing spaces
2019-02-20 18:59:07 -08:00
Benjamin Sergeant
05033714bf
hearbeat
2019-01-24 12:42:49 -08:00
Benjamin Sergeant
e4b0286a25
fix gcc warning
2019-01-05 16:26:11 -08:00
Benjamin Sergeant
d75753ec98
timeout is configurable
2019-01-03 18:33:08 -08:00
Benjamin Sergeant
9bc2e95196
capture path/uri when connecting, and pass it back through callbacks in the openInfo member
2019-01-03 17:44:10 -08:00
Benjamin Sergeant
474985e784
split handshake code into its own files, so that Transport file is less massive
2019-01-02 20:07:54 -08:00
Benjamin Sergeant
0b90f7df1b
add a way to run in blocking more, which is useful for server mode to have N*thread instead of 2N*thread for N connections
2019-01-01 21:25:15 -08:00
Benjamin Sergeant
f8373dc666
more cleanup to propagate server connection error and let onOpen callback execute
2018-12-31 12:43:47 -08:00
Benjamin Sergeant
7710bf793f
cleanup / use a websocket instead of raw websockettransport
2018-12-30 22:00:49 -08:00
Benjamin Sergeant
395d823f41
set thread name / rename example
2018-12-23 14:14:38 -08:00
Benjamin Sergeant
f77ececc92
threading race condition fixes, detected by TSAN
2018-12-06 08:27:28 -08:00
Benjamin Sergeant
58cccbdcf9
cleanup
2018-11-14 15:52:28 -08:00
Benjamin Sergeant
43fcf93584
per message deflate support (with zlib)
2018-11-09 18:42:09 -08:00
Benjamin Sergeant
bb0b1836cd
capture an error code and a reason when the server closes the connection
2018-10-25 18:51:19 -07:00
Benjamin Sergeant
2bc38acbb1
ping / pong support / fix bug in dispatching received message type
2018-10-25 14:43:35 -07:00
Benjamin Sergeant
977feae1d6
Better ping/pong support
2018-10-25 14:43:35 -07:00
Benjamin Sergeant
9b8d6cedfe
First import
2018-09-27 14:57:19 -07:00