Add more pubsub fuzzing
This commit is contained in:
@@ -73,8 +73,18 @@ protected:
|
||||
return us_socket_close(SSL, (us_socket_t *) this, 0, nullptr);
|
||||
}
|
||||
|
||||
void corkUnchecked() {
|
||||
/* What if another socket is corked? */
|
||||
getLoopData()->corkedSocket = this;
|
||||
}
|
||||
|
||||
/* Cork this socket. Only one socket may ever be corked per-loop at any given time */
|
||||
void cork() {
|
||||
/* Extra check for invalid corking of others */
|
||||
if (getLoopData()->corkOffset && getLoopData()->corkedSocket != this) {
|
||||
std::abort();
|
||||
}
|
||||
|
||||
/* What if another socket is corked? */
|
||||
getLoopData()->corkedSocket = this;
|
||||
}
|
||||
|
||||
+1
-1
@@ -287,7 +287,7 @@ public:
|
||||
|
||||
/* For whatever reason we were corked, update cork to the new socket */
|
||||
if (wasCorked) {
|
||||
webSocket->AsyncSocket<SSL>::cork();
|
||||
webSocket->AsyncSocket<SSL>::corkUnchecked();
|
||||
}
|
||||
|
||||
/* Initialize websocket with any moved backpressure intact */
|
||||
|
||||
Reference in New Issue
Block a user