-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Miniflare 3] Re-enable concurrent
dispatchFetch()
s and batch proxy…
… heap frees (#713) * Re-enable concurrent `dispatchFetch()`s and batch proxy heap frees In order to fix tests when adding the magic proxy, we restricted `dispatchFetch()` to one concurrent TCP connection. Unfortunately, this prevented long-lived `dispatchFetch()` requests. When proxies are garbage collected, we send a network request to `workerd` to free the corresponding entry in the `ProxyServer` heap. Garbage collection often happens in phases though, freeing lots of objects at once. This caused many concurrent requests to `workerd` (~60 in some tests), leading to many TCP connections being created. This change re-enables using multiple TCP connections, and attempts to address the root cause of the issues we were seeing, by batching frees before sending the network request. * Re-enable parallel tests
- Loading branch information
Showing
4 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters