aleph

elahti 2016-10-14T09:00:17.000369Z

I'm using aleph.udp/socket for sendin messages. When receiving messages that have the payload over 2048 characters (json encoded strings), then the payload is chomped to be 2048 characters. Rest of the payload is just dropped.

elahti 2016-10-14T09:06:29.000370Z

Is there a way of telling aleph/udp directly that i'd like to have larger payloads/mtu/whatever is limiting the size of the payload?

2016-10-14T09:25:16.000371Z

iā€™m pretty sure that aleph allows you to directly pass options to netty when you create servers/sockets

2016-10-14T09:25:18.000372Z

let me see

elahti 2016-10-14T09:29:13.000373Z

yea me too but i wasn't able to decrypt what and where to

2016-10-14T09:32:04.000374Z

looks like this is not the case. interesting. you probably are going to have to call netty functions directly

elahti 2016-10-14T09:41:06.000377Z

what would this do?

@(udp/socket {:port port
              :bootstrap-transform
                    (fn [^Bootstrap bootstrap]
                      (.option bootstrap ChannelOption/SO_RCVBUF 4096)
                      (.option bootstrap ChannelOption/RCVBUF_ALLOCATOR
                               (FixedRecvByteBufAllocator. 4096)))

elahti 2016-10-14T09:41:13.000378Z

oh, crappy formatting, will fix

dm3 2016-10-14T09:50:24.000381Z

no idea šŸ™‚

elahti 2016-10-14T09:53:23.000382Z

yea, thanks for help! i'll tell if it works.

elahti 2016-10-14T10:09:47.000383Z

yea it works.

elahti 2016-10-14T10:09:49.000384Z

awesome.

elahti 2016-10-14T10:10:30.000385Z

we're in middle of a game hackathon where we're developing a game AI with clojure. the messages got over 2048 chars.