7 Commits (e213af322606b751a41699aba0296a6e18109ec4)

Author SHA1 Message Date
Jessie Murray e213af3226
Fix for WebSocket payload length using 8 bytes
The 8-byte conversion macros were incorrect, and could be replaced with
standard methods instead. This also adds a test to cover this case.
3 years ago
Jessie Murray 1cbffb63c9
Re-enable pub/sub test in ws-tests 3 years ago
Jessie Murray bb02c1dd04
Formatting only: make ws-tests.py PEP8 compliant. 3 years ago
Jessie Murray 71223ae005
Address review comments (tests) 3 years ago
Jessie Murray 6b090b4ede
Large refactoring of WS code
1. Introduce ws_client struct
2. Handle all communications from websocket.c for WS clients
3. Always use a dedicated Redis connection for WS clients
4. Add rbuf & wbuf evbuffers for incoming & outgoing WS data
5. Use event_base_once to control R/W events
6. WS test: make sure to read complete HTTP response
3 years ago
Jessie Murray 6383cd48dd
Add pub-sub test using WebSockets (disabled)
Add new pub-sub test using WebSockets, disabled by default due to
message ordering not matching what is expected.
Enable the test with `PUBSUB=1 ./ws-tests.py`
3 years ago
Jessie Murray f86bad3bc8
Add Python-based WebSockets tests
1. Create WS tests with the same structure as basic.py
2. Add JSON tests
3. Add "raw" tests
3 years ago