Merge pull request #1548 from spray/wip/io-fix-configured-noacks
io: fix rare bug in TcpConnection causing the sending of certain `NoAck`...
This commit is contained in:
commit
b044b6b5a9
2 changed files with 23 additions and 9 deletions
|
|
@ -132,7 +132,7 @@ private[io] abstract class TcpConnection(val tcp: TcpExt, val channel: SocketCha
|
|||
|
||||
} else write match {
|
||||
case Write(data, ack) if data.isEmpty ⇒
|
||||
if (ack != NoAck) sender ! ack
|
||||
if (write.wantsAck) sender ! ack
|
||||
|
||||
case _ ⇒
|
||||
pendingWrite = createWrite(write)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue