SirStendec
2ec26f2cdc
Fix socket server compilation errors.
2018-07-21 16:31:04 -04:00
SirStendec
7e6a08ad1d
4.0.0-rc8.2
...
* Fixed: Appearance of Twitch emotes in locally displayed `/me` messages in chat.
* Fixed: Rendering of international usernames in Clips Chat.
* Changed: Tag error reports with the current site.
Fix the implementation of rate-limiting in the socket server to use data from the sealed request. Load a list of acceptable origins from the config file.
2018-07-21 16:26:10 -04:00
Kane York
360420022d
Go back to 503 rejections instead of TLS aborts
2017-11-13 15:57:20 -08:00
Kane York
5483087618
Revert "Use read deadlines instead of ping tickers"
...
This reverts commit 9c9fde0160
.
2017-11-13 13:40:41 -08:00
Kane York
6e6a5d7836
Revert "send const ping payload"
...
This reverts commit 26cddf5271
.
2017-11-13 13:40:35 -08:00
Kane York
a0b3e049d0
Reject over capacity before finishing TLS handshake
2017-11-13 12:48:56 -08:00
Kane York
26cddf5271
send const ping payload
2017-11-08 14:40:51 -08:00
Kane York
9c9fde0160
Use read deadlines instead of ping tickers
2017-11-08 14:36:21 -08:00
Kane York
ea4909cdc6
Reformat
2017-10-27 13:15:00 -07:00
Kane York
85a0fb7b79
Make client.messageChannel unexported
2017-10-27 13:14:29 -07:00
Kane York
a900d1521e
Optimize pings to reduce timer percolation
2017-10-27 13:13:39 -07:00
Kane York
edb728f7bb
Optimize MarshalClientMessage to avoid copies
2017-10-23 15:39:00 -07:00
SirStendec
373f521de8
Allow the socket server to act as a proxy to other services.
2017-09-28 23:03:41 -04:00
Kane York
a4f0f4867a
Don't re-marshal if we already have the JSON
2017-09-26 14:50:56 -07:00
Kane York
7657357164
Compile fixes, switch cache implementation
2017-09-25 15:08:22 -07:00
Kane York
44249a3721
Better shutdown code, release listeners
2017-09-21 14:33:06 -07:00
Kane York
b108177942
Add /all_topics endpoint
...
Temporarily not protected with sealing, we'll see how the performance is
first.
2017-09-21 10:33:06 -07:00
Kane York
230f4e9ccd
test: Ignore empty frames in Unmarshal()
2017-09-18 15:11:13 -07:00
Kane York
0744019555
Handle errors in UnmarshalClientMessage
2017-09-18 14:54:09 -07:00
Kane York
bd1051b4c1
Merge branch 'master' into patch-4
2017-09-18 14:35:46 -07:00
SirStendec
231e2839e8
Backend: Attempt fixing argument leak when RPC is called without arguments.
2017-09-17 14:40:39 -04:00
Kane York
1c55e8fca7
Extract form sealing to a package
2017-09-15 16:40:40 -07:00
Kane York
ced892fd1a
Fix more warnings
2017-09-15 16:30:11 -07:00
Kane York
e725dc248c
at least pretend to make Statistics thread-safe
...
reduce websocket read buffers
2017-09-15 15:57:21 -07:00
Kane York
fd357ae6f2
reject pongs for non-set-up clients
2017-09-15 13:19:33 -07:00
Kane York
f31a93f790
Fix failure-to-hello check
2017-09-15 13:11:19 -07:00
Kane York
413f62f56b
fix compile
2017-09-15 12:28:01 -07:00
Kane York
1da392f5b3
Moved rate.Limiter into its own package
2017-02-02 23:20:10 -08:00
Kane York
50e295c834
Add ratelimits to publishing
2017-02-02 22:59:17 -08:00
Kane York
972437cd4a
Add /get_sub_count
2016-07-08 19:16:10 -07:00
Kane York
1dc92ed407
Add tests
2016-07-08 13:08:36 -07:00
Kane York
cdcb7fb079
convert backend urls
2016-06-02 09:03:43 -07:00
Kane York
6abd30d71c
fix race condition with lastSuccess
...
convert responseCache
2016-06-02 08:59:40 -07:00
Kane York
b94bcf743e
convert (Un)SealRequest
2016-06-02 08:47:07 -07:00
Kane York
842dc64991
all health timestamps in UTC
2016-06-02 08:39:11 -07:00
Kane York
dd9e66c80d
convert httpClient
2016-06-02 08:36:02 -07:00
Kane York
d49c88a222
Add Health to /stats, add irc reconnect
2016-06-02 08:16:16 -07:00
Kane York
69e5434cc2
Allow blank Origin header
2016-04-20 14:28:35 -07:00
Kane York
e1e26f5288
add cbenni.com to origin regexp whitelist
2016-04-01 19:22:55 -07:00
Kane York
189965c967
Allow 'upgrade' anywhere in connection header
2016-03-30 17:33:45 -07:00
Kane York
bba5d8f344
Use a regexp instead to match origin
2016-02-03 22:06:46 -08:00
Kane York
cddd13ba16
Allow HTTPS twitch pages access to socket server
2016-02-03 22:01:47 -08:00
Kane York
43ecbff656
Treat all strings from read buffers as gc-tainted
...
Rule: Copies must be made before retaining the string.
2016-01-17 19:46:01 -08:00
Kane York
fdbcfe98dd
move internCommands() to func init()
2016-01-17 18:40:08 -08:00
Kane York
7654dcdf8d
Source cleanup, and some string copies
2016-01-17 18:01:21 -08:00
Kane York
387ada9c9c
memory: Make a copy of origArguments
2016-01-17 17:46:34 -08:00
Kane York
abb032f0c1
memory: Use a string pool for Commands
2016-01-17 17:45:37 -08:00
Kane York
c85e8b10c3
Memory: Reduce send buffer length, entirely too large
2016-01-17 17:28:33 -08:00
Kane York
b3cbec4560
this is why i wasn't using relative imports
2016-01-17 17:05:52 -08:00
Kane York
1023b6ed11
implement addRange, add pprof to server
2016-01-17 16:50:17 -08:00