       (.childOption ChannelOption/TCP_NODELAY true)
       (.childOption ChannelOption/SO_KEEPALIVE true)
       (.childHandler initializer))
-                                        ; Start bootstrap
     (let [ch (->> (InetSocketAddress. host port)
                   (.bind bootstrap)
                   (.sync)

    (taoensso.timbre/info "Stopping Netty TCP Sockets")
    (try 
      (when-let [rs @resources]
        (let [{:keys [shutdown-fn shutdown-ch]} rs] 
          (close! shutdown-ch)
          (shutdown-fn))
        (reset! resources nil)) 
      (catch Exception e (timbre/fatal e)))
    (assoc component :bind-addr nil :external-addr nil 

                        set)
        port (first (remove used-ports
                            (:netty/ports peer-site)))]
    (assert port "Couldn't assign port - ran out of available ports.")
    {:netty/port port}))

(defn int32-frame-decoder
