Reset onData handler once we get the fin chunk
This commit is contained in:
@@ -202,6 +202,12 @@ private:
|
|||||||
if (us_socket_is_shut_down(SSL, (us_socket_t *) user)) {
|
if (us_socket_is_shut_down(SSL, (us_socket_t *) user)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If we were given the last data chunk, reset data handler to ensure following
|
||||||
|
* requests on the same socket won't trigger any previously registered behavior */
|
||||||
|
if (fin) {
|
||||||
|
httpResponseData->inStream = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return user;
|
return user;
|
||||||
}, [](void *user) {
|
}, [](void *user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user