Fork me on GitHub
#aleph
<
2016-10-14
>
elahti09:10:17

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.

elahti09:10:29

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?

lmergen09:10:16

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

lmergen09:10:18

let me see

elahti09:10:13

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

lmergen09:10:04

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

elahti09:10:06

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)))

elahti09:10:13

oh, crappy formatting, will fix

dm309:10:24

no idea 🙂

elahti09:10:23

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

elahti10:10:47

yea it works.

elahti10:10:30

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