                    ^:shared msg-decoder      (msg-decoder)
                    ^{:shared true :executor shared-event-executor} handler
                    (gen-udp-handler core stats channel-group udp-handler)))]
-     (UDPServer. host port max-size channel-group ci stats core (atom nil)))))
+     (UDPServer. host port max-size so-rcvbuf channel-group ci stats core (atom nil)))))

(defrecord UDPServer [^String host
                      ^int port
                      max-size
                      ^ChannelGroup channel-group
                      ^ChannelHandler handler
                      stats

  :host             The address to listen on (default 127.0.0.1).
  :port             The port to listen on (default 5555).
  :max-size         The maximum datagram size (default 16384 bytes).
  :so-rcvbuf        The socket option for receive buffer in bytes (SO_RCVBUF)
  :channel-group    A ChannelGroup used to track all connections
  :initializer      A ChannelInitializer"
  ([] (udp-server {}))
