| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
1480574001 |
MT#55283 overhaul WS locking logic
Multiple writers may operate on a single WS connection simultaneously. Make sure they don't get in each other's way while constructing their messages/responses by holding the lock from the beginning of the response until the point when it's fully ready. This fixes a problem of parts of multiple messages getting mixed up with each other. Change-Id: If84224fc06b423cd65c12981a5b09ee99b121df2 |
6 months ago |
|
|
17c7fd5375 |
MT#61630 support CLI commands via POST
Change-Id: I2970b331f4889bed7eab11d33ab16751ef4246a5 |
11 months ago |
|
|
423d7bf824 |
MT#59086 Unify header files.
In the header files follow the rules: 1. Firstly goes ifndef/define construction, then one empty row. 2. Secondly go system headers, so in angle-brackets, then one empty row. 3. If there are important pre-processor definitions, which affect the following custom file headers, they are added next, then one empty row. 4. Thirdly custom header files, so in double quotes, then at least one empty row. 5. If there is "xt_RTPENGINE.h", it's mentioned next, but separately, then one empty row. 6. Then pre-processor definitions, and one empty row before the code. In some situations it's allowed to step aside from the rules, when inclusions are dependent on each other, so on specific sequence, and also possibly on some inline objects definitions. But, if possible to follow the rules, it should be done. Change-Id: I6bec69b508653947c04e7785775373d21112eb58 |
2 years ago |
|
|
26cc168f83 |
MT#55283 eliminate useless return values
These functions now cannot fail and so returning a value is pointless. Change-Id: I062449f30f05fb3efa4ba520004a13de3a0abd5a |
3 years ago |
|
|
b207d0c586 |
MT#55283 single-threaded lws_write()
Avoid calling lws_write() from threads other than the service thread, as this might not be thread-safe. Instead store the values used for the HTTP response headers in the websocket_output, then trigger a "writable" callback, and finally do all the lws_write() calls from the service thread. Reported in #1624 Change-Id: Ifcb050193044e5543f750a12fb44f5e16d4c0a08 |
3 years ago |
|
|
9b20ce2ef9 |
MT#56447 support HTTP OPTIONS
Rudimentary dummy response only Change-Id: I753a0fddcd1e089f4be11c2d516f540adf459fea |
3 years ago |
|
|
9eb7b640c2 |
TT#14008 add explicit lws_cancel_service at shutdown
Newer libwebsockets versions seem to use a longer internal timeout, so an explicit "interrupt" is needed during shutdown to prevent a long wait time. Change-Id: I8f28ef658169178e35b40dd44520fbd7c812b590 |
3 years ago |
|
|
2130e2f62b |
TT#89352 support Janus control protocol
Change-Id: I0a6d5fc93c5fa505390408043feeca3f5cf61181 |
5 years ago |
|
|
b945104b5e |
TT#89352 switch `done` flag to bool type
Change-Id: I6206a13779ccd44a575654f6af8627492d4b13ed |
4 years ago |
|
|
4910f7b33f |
TT#88951 support queuing multiple WS output messages
Change-Id: I9bcb1f5dd2942c4631820c25f343331c9630b8d7 |
5 years ago |
|
|
31f8b6f982 |
TT#91150 support NG over HTTP/WS
Change-Id: Ib0255872f6d85f2ca5c2d9118831ba8e65f7df2a |
5 years ago |
|
|
aa36a1f619 |
TT#88951 add HTTP/Websocket listener
Change-Id: Ib2e7c87913abd4f89aa43075fe7cd9fb4d7cf1f7 |
5 years ago |