You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS platforms the default threadpool size of 64 is a bit aggressive. Sometimes iOS will not want to create that many threads leading to a crash in ThreadOpsPosix.run (ThreadPosix.swift:109). Even when swapping the NIOThreadPool to one with only one thread doesn't prevent the default one from creating 64 threads.
To Reproduce
Boot a vapor app.
Steps to reproduce the behavior:
n/a this is the default behaviour.
Expected behavior
app.threadPool = NIOThreadPool(numberOfThreads: 1) should replace the default threadpool before it's started.
Describe the bug
On iOS platforms the default threadpool size of 64 is a bit aggressive. Sometimes iOS will not want to create that many threads leading to a crash in
ThreadOpsPosix.run (ThreadPosix.swift:109)
. Even when swapping theNIOThreadPool
to one with only one thread doesn't prevent the default one from creating 64 threads.To Reproduce
Boot a vapor app.
Steps to reproduce the behavior:
n/a this is the default behaviour.
Expected behavior
app.threadPool = NIOThreadPool(numberOfThreads: 1)
should replace the default threadpool before it's started.Environment
Additional context
I'm happy to provide a patch for this.
The text was updated successfully, but these errors were encountered: