Oh boy. io.netty.handler.codec.CorruptedFrameException: Max frame length of 65536 has been exceeded.
<--- is this something I can... uhm... "fix" by allowing bigger packets?
So I tried to boost the signal, rotate the phase matrix and even reverse the polarity but... I can't get this to not break on large packets. This is what I have:
(defn connect
"Creates a websocket Connection to Discord API"
[state]
(let [full-state (merge state {:internal-handlers internal-handlers})
session (atom full-state)
ws @(http/websocket-client "<wss://gateway.discord.gg/?v=6&encoding=json>"
{:max-frame-payload 67108864
:max-frame-size 67108864
:max-queue-size 67108864})]
(swap! session assoc :ping-counter (atom 0))
(swap! session assoc :socket ws)
(s/consume #(on-message %1 session) ws)
(s/on-closed ws #(on-ws-close session))
session
))
I still get io.netty.handler.codec.CorruptedFrameException: Max frame length of 65536 has been exceeded
@eslachance have you tried this one? https://groups.google.com/forum/#!topic/aleph-lib/gO_EJMOXCoo
I have max-frame-payload in there
Actually that post talks about websocket-connection
and not websocket-client
so I wonder if there are different options for those 2?
you'll need to read the source I think
it's not huge
as far as I can tell, actually, it's the same. https://github.com/ztellman/aleph/blob/b81f79b1f7911637af90391d9761fd45e584cd67/src/aleph/http.clj#L144
no max-queue size though
so I dug through netty and haproxy, and came up with this: https://github.com/csm/aleph-haproxy-tcp