[REBOL] Re: The Storm Engine
From: andreas:bolka:gmx at: 12-Aug-2003 17:38
Tuesday, August 12, 2003, 4:31:58 PM, maarten wrote:
> As the main advice was "keep it clean" I thought I'd upload a
> slightly polished version. Docs and a sample included,
> asynchronously if you wnat it to be.
> Any feedback appreciated.
1.) Of course your licensing is up to you, but is there any reason why
this (and the async network stuff) has to be GPL'd? Makes it
impossible to use in commercial/Non-GPLable REBOL stuff.
2.)
repeat i 300 [
print i
storm-client/send-message/deliver tcp://localhost:8000 echo [ test ] :probe
]
-- output --
1
2
...
256
257
** Access Error: Error opening socket /async
** Where: async-send
** Near: p2: open to url! p1
-- snap --
I'd guess some kind of max open ports (<=256) limit is reached. So I
tried the following:
repeat i 500 [
storm-client/send-message/deliver tcp://localhost:8000 echo reduce [ i ] :probe
wait []
]
Seems to wait forever after msg #255 was received. If I leave the
waiting by hitting ESC and try to send another message, I once more
get the "Error opening socket /async" error.
Any ideas? (the above was tried using rebol/core 2.5.6.3.1)
--
Best regards,
Andreas