Bug 227942

Summary: [curl] CurlRequestScheduler thread runs busily while all active handles are paused to wait for completeDidReceiveResponse
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
logging patch none

Description Fujii Hironori 2021-07-13 22:35:08 PDT
Created attachment 433489 [details]
logging patch

[curl] CurlRequestScheduler thread runs busily while all active handles are paused to wait for completeDidReceiveResponse

1. Apply the logging patch and compile WinCairo WebKit
2. Remove the cache directory manually
   C:\Users\<username>\AppData\Local\Apple Computer\WebKit
3. $env:WebCoreLogging = "Network"
4. Start WinCairo WK2 MiniBrowser
5. Go to https://www.asahi.com/
6. Server Trust Evaluation Request dialogs are popped up
7. Close the dialogs
8. Wait for finish loading
9. Check the log

The log contains a lot of maxfd=-1 lines.

> CurlRequestScheduler::workerThread maxfd=-1 rc=0
> CurlRequestScheduler::workerThread activeCount=1
> CurlRequestScheduler::workerThread maxfd=-1 rc=0
> CurlRequestScheduler::workerThread activeCount=1
> CurlRequestScheduler::workerThread maxfd=-1 rc=0
> CurlRequestScheduler::workerThread activeCount=1
Comment 1 Fujii Hironori 2021-07-16 14:15:58 PDT
r279993 fixed this bug.

*** This bug has been marked as a duplicate of bug 227966 ***