.NET threadpool is full

  • Thread starter Thread starter Mario
  • Start date Start date
M

Mario

Hi, every one. Maybe some can help me.

I'm implement a threading socket server in an array
thread pool but when the server is using all the thread
the clients can't connect to my server. a.k . my server
don't continue looking for on the .NET poolthread. I don't
know why ?

Mario
 
Mario said:
Hi, every one. Maybe some can help me.

I'm implement a threading socket server in an array
thread pool but when the server is using all the thread
the clients can't connect to my server. a.k . my server
don't continue looking for on the .NET poolthread. I don't
know why ?

You should probably dedicate a non-pool thread for your listener.
On that thread do blocking IO, and when you accept a connection queue the
connection for a pool thread and go right back to blocking.

David
 
Back
Top