Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Fastream Technologies
Though, you can shorten the interval for the TIMW_WAIT state from registry. If you do not know how, let me know. I usually set it to 60 secs instead of the default 240. Regards, SZ On 12/15/07, Arno Garrels <[EMAIL PROTECTED]> wrote: > > Wilfried Mestdagh wrote: > > Hello Angus, > > > > there w

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello Angus, > > there was another one (forgot wich one). you need to see how many in > use for non-paged memory (used by socket and overlapped IO). Won't that be just workarounds? I guess either sockets are not closed properly or someone tried a DoS. In the latter case

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Primož Gabrijelčič
Just search for 'size_t' in MSDN: "typedef unsigned int size_t;" http://msdn2.microsoft.com/en-us/library/bb401794.aspx Primoz > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Angus Robertson - Magenta Systems Ltd > Sent: Saturday, December 15, 20

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Angus Robertson - Magenta Systems Ltd
> there was another one (forgot wich one). you need to see how many > in use for non-paged memory (used by socket and overlapped IO). Now found GetPerformanceInfo (XP and better only), which has some useful elements: SIZE_T KernelTotal; SIZE_T KernelPaged; SIZE_T KernelNonpaged; once I fi

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Wilfried Mestdagh
Hello Angus, there was another one (forgot wich one). you need to see how many in use for non-paged memory (used by socket and overlapped IO). --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, December 15, 2007, 19:16, Angus Robertson

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Angus Robertson - Magenta Systems Ltd
> I recall it is winapi call GlobalMemoryStatus I check GetProcessMemoryInfo and GlobalMemoryStatus every 30 seconds in another application, but it was not running on the PC that lost TCP today, which has 3 gigs of RAM. This logging is from a couple of days ago, if the memory load reaches 98% or

Re: [twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Wilfried Mestdagh
Hello Angus, I recall it is winapi call GlobalMemoryStatus. It fills a struct and one of the members of the struct is the available RAM. 1/8 size of ram is the maximum amount of non pageable memory the machine can grow. So that is the max amount available for sockets and overlapped IO. --- Rgds,

[twsocket] Recovering from Error 10555, No buffer space available

2007-12-15 Thread Angus Robertson - Magenta Systems Ltd
A windows service with 30 odd sockets that's been running 24/7 for 18 months (barring monthly windows update reboots), died early this morning with 10055 in TryToSend. Unfortunately, this logged error was itself being sent via a socket, so repeated a few hundred times in less than a second, fina