Commit Graph
406 Commits
Author SHA1 Message Date
Alex HultmanandGitHub c7506a05dc Remove print from TopicTree 2020-06-28 08:31:24 +02:00
Alex Hultman 3e5d91418a Emit 1006 with some usable reason messages 2020-06-27 01:49:51 +02:00
Alex Hultman 13e0a93441 Never emit 0 as close code; use 1005 instead 2020-06-27 00:57:42 +02:00
Alex Hultman 10bbfaa22f Use uSockets v0.5.0 2020-06-26 22:12:33 +02:00
Alex Hultman 2ff50630e9 Send TCP FIN from HttpContext if WebSocket FIN sent 2020-06-26 06:08:41 +02:00
Alex Hultman 162fa965ee AsyncSocket::getBufferedAmount should be unsigned 2020-06-26 06:07:36 +02:00
Alex Hultman f52d816032 Never compress 0 bytes, finish pub/sub ded. compr. 2020-06-22 07:10:43 +02:00
Alex Hultman 57cec82fcf Initial pub/sub dedicated compression 2020-06-21 03:19:50 +02:00
Alex Hultman 04bce1b828 maxBackpressure of 0 should always mean disabled 2020-06-21 00:10:03 +02:00
Alex Hultman e85b5bff3c Skip sending on WebSocket when having too much backpressure 2020-06-21 00:05:18 +02:00
Alex Hultman 1a2c5a9527 Make getNativeHandle public 2020-06-20 23:45:30 +02:00
Alex Hultman aac11b07fb Add getNativeHandle functions 2020-06-20 23:36:27 +02:00
Alex Hultman 9336e7d9af Stricter PROXY/HTTP detection 2020-06-10 22:33:09 +02:00
Alex Hultman fd2d36328d Never drain a closing socket from unsubscribeAll 2020-06-10 22:25:45 +02:00
Alex Hultman 17b718a10b Stricter pub/sub grouping 2020-06-10 14:20:32 +02:00
Alex Hultman 025415d1a0 Clean-ups, bump copyright date 2020-06-08 13:31:06 +02:00
Alex Hultman 5d5f9edc63 Return empty string if we have no proxy 2020-06-06 21:07:20 +02:00
Alex Hultman 0d9cb39db6 Silence warnings, check length 2020-06-06 20:26:59 +02:00
Alex Hultman b17aad916f Actually read proxied ip 2020-06-06 20:07:20 +02:00
Alex Hultman d5782fdb9c addressAsText, getRemoteProxiedAddress 2020-06-06 19:52:28 +02:00
Alex Hultman 2538cd18e9 Add WITH_PROXY flag 2020-06-06 12:59:40 +02:00
Alex Hultman e70bbb4fb6 Add basic proxy parser 2020-06-05 19:23:15 +02:00
Alex Hultman 9e3a75b19a Clean-ups 2020-06-04 13:19:25 +02:00
Alex Hultman df14af9713 Bump version mark to 18 2020-06-03 07:59:15 +02:00
Alex Hultman e4f81e16ea Don't set upgradedWebSocket outside the Http parser 2020-06-03 07:56:33 +02:00
Alex Hultman 625efbc499 Don't pass req in open handler 2020-06-02 12:59:36 +02:00
Alex Hultman 6735bad79c Pass UserData when upgrading 2020-06-02 12:55:05 +02:00
Alex Hultman cb48712b3d Make it stick together just barely 2020-06-02 12:40:51 +02:00
Alex Hultman a8539e7463 Move most upgrading into HttpResponse 2020-06-02 10:08:31 +02:00
Alex Hultman 4be90c0114 Add upgrade handler 2020-06-01 15:45:03 +02:00
Alex Hultman 8f7d642f3f Add shared compression for pub/sub 2020-05-28 23:24:52 +02:00
Alex HultmanandGitHub c6a2ee0554 Change mark, 17 2020-05-24 21:38:31 +02:00
Alex HultmanandGitHub fb7a3303d6 Clear no longer subscribed-to Topics when draining 2020-05-20 17:27:06 +02:00
Alex HultmanandGitHub 20b1676590 Skip sending rather than immediately close while publishing 2020-05-20 17:10:20 +02:00
Alex Hultman 7a000bffcf Add failing unit test for TopicTree 2020-05-08 14:05:06 +02:00
Alex HultmanandGitHub cdda308bc2 Silence an alert 2020-05-08 07:32:39 +02:00
Alex HultmanandGitHub 11aafd32f5 Always emit drain event in case of having no backpressure 2020-05-07 08:10:57 +02:00
Alex Hultman c1a969cedd Fix router in regards to empty url segments 2020-04-20 00:12:56 +02:00
Alex Hultman c7ac8c7e56 Store headers in bloom filter, respond to 100-continue 2020-04-06 02:48:11 +02:00
Alex Hultman 19db2093e5 Gracefully fail to listen if SSL cert/key was missing 2020-04-03 21:31:31 +02:00
Alex Hultman 22d661609a Zero-length inflations are peculiar, yet valid 2020-04-03 20:46:20 +02:00
Alex HultmanandGitHub dfbab89e6e Restore UWS_NO_ZLIB 2020-03-02 21:26:18 +01:00
Alex HultmanandGitHub 2e65bf0a67 3kb is smallest compressor 2020-02-29 05:21:30 +01:00
Alex Hultman 3a856b610b Add memory limited dedicated compressors 2020-02-29 04:06:27 +01:00
Alex Hultman 591518b2d0 Ping/pong ahoy 2020-02-29 00:18:25 +01:00
Alex Hultman 95f173bff8 Reintroduce ping/pong handlers 2020-02-29 00:05:00 +01:00
Dmitry IgrishinandGitHub 1c84277fd9 Optionally prevent sending of "uWebSockets" header (#998)
* Optionally prevent sending of "uWebSockets" header
2020-02-23 18:41:25 +01:00
Alex Hultman 588d234d45 Allow having no open handler 2020-01-19 19:57:25 +01:00
Alex Hultman 5da9926174 Fix one warning 2020-01-19 19:49:46 +01:00
Alex Hultman 0faebc7590 Allow having no close handler 2020-01-19 19:46:51 +01:00