Fork me on GitHub
#aleph
<
2017-02-08
>
eslachance05:02:48

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?

eslachance20:02:09

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 ""
                                   {: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
    )) 

eslachance20:02:19

I still get io.netty.handler.codec.CorruptedFrameException: Max frame length of 65536 has been exceeded

eslachance20:02:10

I have max-frame-payload in there

eslachance20:02:42

Actually that post talks about websocket-connection and not websocket-client so I wonder if there are different options for those 2?

dm320:02:59

you'll need to read the source I think

dm320:02:02

it's not huge

eslachance20:02:00

no max-queue size though

csm23:02:16

so I dug through netty and haproxy, and came up with this: https://github.com/csm/aleph-haproxy-tcp