YuBinglei
YuBinglei
不好意思,之前忘记提了。 我用的版本是GitLab Community Edition 9.4.5 140292e
@aatishb hi, could you take a look?
Happy new year, my friends 😄
How to reproduce: calling a external API which can only serve limited tcp and takes a long time to create each tcp
@yschimke Hi ,this is the full stacktrace , we can see that threads were blocked at `TaskRunner.runTask` and waiting for lock. [jstatck-2.txt](https://github.com/square/okhttp/files/15137561/jstatck-2.txt) > at java.util.concurrent.locks.ReentrantLock$Sync.lock(java.base@21/ReentrantLock.java:153) > at java.util.concurrent.locks.ReentrantLock.lock(java.base@21/ReentrantLock.java:322) > at...
> Can you tell me how many concurrent calls are you making? > > If it’s not very many (say, 10 or fewer) and you’re seeing this problem, then it’s...
> I think we might just be missing a signal() call on our monitor? This thread is waiting on the condition and it shouldn’t be. Maybe the `TaskRunner.coordinatorWaiting` should be...
Just share a code snippet that I am currently using to reduce the competing: ```kotlin @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") fun dispatcherPoweredByVirtualThread() = Dispatcher( Executors.newThreadPerTaskExecutor(Thread.ofVirtual().name("OkHttp Dispatcher(Virtual Thread)", 0).factory()) ) fun virtualThreadClient(dispatcherCustomizer: Dispatcher.() ->...