Overview
| Artifact ID: | 3f2e373f51db1e28f19a223a0a9dc52b84858027 |
|---|---|
| Ticket: | 597924ffffffffffffffffffffffffffffffffff
win: "Can't create a new thread" |
| User & Date: | davygrvy on 2002-11-21 15:13:04 |
Changes
- icomment:
Logged In: YES user_id=7549 The attached patch seems to fix the problem :) All win channel drivers had a good 'going over' to make sure they cleanly exit their worker threads. Does this fix the problem for you guys, too? Like Julian, I witnessed the same lock-ups, but couldn't put my finger on exactly where it was coming from. Following my instinct, I looked at how the standard channels where initialized/shutdown in each thread created. I noticed that in the shutdown phase the reader and writer threads (console channel driver) where terminated rather than allowed a clean exit. Knowing this was a big problem in the pipe driver for the read thread, I followed the same structure and made all worker threads the same. Now I don't get the lock-up. process handle count is stable all the way to 2000 and probably beyond, but didn't want to wait around. Thread count doesn't grow either which means all handles are being recycled properly :)
- login: "davygrvy"
- mimetype: "text/plain"
- title changed to: "win: "Can't create a new thread""
- username: "davygrvy"