Skip to content

Commit

Permalink
Merge pull request #901 from nats-io/fix_writeloop_signal_for_1_4_0
Browse files Browse the repository at this point in the history
[FIXED] Possible delay in flushing data
  • Loading branch information
kozlovic authored Feb 7, 2019
2 parents ce2df36 + bc8db76 commit 8e88372
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ func (c *client) flushOutbound() bool {
}
}

// Signal again if there is still data to send
if c.out.pb > 0 {
c.out.sg.Signal()
}

return true
}

Expand Down

0 comments on commit 8e88372

Please sign in to comment.