Skip to content

Commit 6923182

Browse files
committed
Update destroyable server to v1.1.0 to avoid races with server.stop()
Without this, there is a race condition given an open connection to a Mockttp server after calling server.stop() and then server.start() in rapid succession. It's possible in this case that the client may try to reuse the connection because server.stop() did not wait until the connection was fully closed, which means the client may not have received the FIN on their connection. In rapid localhost testing scenarios, this can result in failures in the subsequent tests with some clients.
1 parent c08095e commit 6923182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"cors": "^2.8.4",
175175
"cors-gate": "^1.1.3",
176176
"cross-fetch": "^3.1.5",
177-
"destroyable-server": "^1.0.2",
177+
"destroyable-server": "^1.1.0",
178178
"express": "^4.14.0",
179179
"fast-json-patch": "^3.1.1",
180180
"graphql": "^14.0.2 || ^15.5",

0 commit comments

Comments
 (0)