Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Shortage of network connections

From: holger:rebol at: 15-Mar-2002 6:13

On Fri, Mar 15, 2002 at 01:21:05PM +0100, [sqlab--gmx--net] wrote:
> Hello > > I am using Rebol since a few years for transferring messages between pcs and > not so common systems, where i wrote the servers on the non-pc. > > Just since short time i use it too for transferring message via Tcp/Ip > between pcs. And there I observe connection errors in more than 10% of every try. > > Of course I handle that and try it again. But i can see a whole stack of > orphaned socket connections and I am therefore worried that I will get a buffer > or socket shortage or similar problems sooner or later. > > Has anyone seen the same effect and what can you do under Windows (NT, 2000 > a.s.o.), to overcome the problem? > Should I use another open/mode, but open/binary with Rebol, or are there > some tweaks forcing Windows to do a housekeeping on socket connections in > CLOSE/WAIT state?
Having a socket in Close/Wait for an extended period of time is the result of bugs in the kernel, either on your end or on the other end. There is nothing you can do about it, but it should not be harmful either. Kernels can handle tens of thousands of socket connections, and connections in Close/Wait do not count towards the per-application socket limit, so applications should not be affected. (Contrast Close/Wait to Time/Wait, which is completely normal, necessary, not the result of bugs, and only last for a minute or so). All of this is unrelated to REBOL or any modes/options set in REBOL. -- Holger Kruse [kruse--nordicglobal--com]