Browse Source
It can happen that a socket gets closed while the pbuf is not completely drained by the application. It can also happen that a new pbuf comes in via the recv callback, and then a "peer closed" event comes via the same callback (pbuf=NULL) before the previous event has been handled. In both cases the socket is closed but there is remaining data. This patch makes sure such data is passed to the application.pull/1888/head
Damien George
9 years ago
committed by
Paul Sokolovsky
1 changed files with 4 additions and 6 deletions
Loading…
Reference in new issue