Unverified Commit f940a15b authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #63 from libp2p/feat/enable-write-coalescing

Re-enable write coalescing
parents 62ac1f66 414db618
......@@ -192,11 +192,7 @@ func (mp *Multiplex) handleOutgoing() {
return
case data := <-mp.writeCh:
// FIXME: https://github.com/libp2p/go-libp2p/issues/644
// write coalescing disabled until this can be fixed.
//err := mp.writeMsg(data)
err := mp.doWriteMsg(data)
pool.Put(data)
err := mp.writeMsg(data)
if err != nil {
// the connection is closed by this time
log.Warningf("error writing data: %s", err.Error())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment