This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-08
Channels
- # aleph (11)
- # arachne (7)
- # aws (1)
- # bangalore-clj (4)
- # beginners (24)
- # boot (128)
- # bristol-clojurians (23)
- # cider (1)
- # cljs-dev (43)
- # cljsrn (6)
- # clojure (178)
- # clojure-austin (3)
- # clojure-chicago (1)
- # clojure-dusseldorf (14)
- # clojure-finland (15)
- # clojure-france (6)
- # clojure-italy (18)
- # clojure-portugal (2)
- # clojure-russia (67)
- # clojure-spec (148)
- # clojure-uk (55)
- # clojurescript (199)
- # core-async (4)
- # cursive (18)
- # datascript (5)
- # datomic (120)
- # devcards (3)
- # dirac (53)
- # emacs (11)
- # events (3)
- # gsoc (7)
- # jobs (1)
- # lein-figwheel (25)
- # leiningen (5)
- # lumo (12)
- # off-topic (29)
- # om (174)
- # om-next (2)
- # onyx (7)
- # perun (10)
- # protorepl (6)
- # re-frame (12)
- # remote-jobs (1)
- # ring (19)
- # ring-swagger (25)
- # rum (6)
- # spacemacs (13)
- # sql (3)
- # untangled (88)
- # yada (7)
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 ""
{: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?
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