-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug (NetworkManger): The key already existed in the dictionary #925
Conversation
I'll go throw this tomorrow. But I get your point. Sometimes it sucks branching from Puppeteer's code but this makes sense. |
So it seems appveyor is having the same trouble I am running the test suite. Is this a known issue or more likely something that i've messed up? |
@Im5tu can you pull from master? |
9b1901c
to
7c9b125
Compare
@kblok - Done :) |
lib/PuppeteerSharp/NetworkManager.cs
Outdated
{ | ||
var frame = await FrameManager?.GetFrameAsync(e.FrameId); | ||
|
||
request = new Request( | ||
request.RawRequest = new Request( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WorkerTests.ShouldEmitCreatedAndDestroyedEvents is failing around here. request
is null, so we fail setting RawRequest
I think we still have something on this test |
It appears that we get the redirect response prior to getting the request will send portion. I haven't managed to take a look further yet - should be able to get back to resolving this tomorrow :) |
Recently we have been seeing the following under load:
This PR looks at some of the causes for this. We are still testing the changes, but wanted to get this here for your visibility and thoughts also.
I've managed to:
... all whilst hopefully kept the same semantics.
It'd be really nice if chrome fixed the mentioned bug and started to send back the request id, then the entire class could be handled with a single ConcurrentDictionary. I know this is not you though ;)