28-07-2009, 09:00 PM
Dragoons Master Wrote:Coke Wrote:that's really quite important to a scaleable server.Just plx (plx plx plx) do NOT create one thread for each connection. That works well on Java because JavaVM handles everything thread related. This do NOT work well on Windows Based systems as well as it should. Try to create one thread every 64 connections (which is the default limit that windows accepts).
Ah alrighty, that'll teach me for applying java principles to .NET I guess. I'm assuming winsock compensates for the bad threading or.. ?
A single thread handling 64 potentially multi-socketed connections sounds a bit... fun o.0
Though if its IO blocking across given connection as I guess it might be to compensate for crap threads the multi-sockets are useless anyway so... bleh I dunno.