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

[REBOL] Maximum number of listening ports

From: lmeyer:bltech:za at: 20-Feb-2010 12:42

Hi We have been using a rebol script for a while now. Its main function is to forwards a Multicast stream to any TCP listening ports. The script works 100%, but if there are a large number of requests from a remote PC to the listening port, the rebcore process seems to close the listen port eventually. This could sometimes only happen after a couple of days. Is there a limit on: - the duration of the listen port being open? - the number of requests that could made by the ? Script: REBOL [ Title: "4550"] mon-address: read make url! join "dns://" (read dns://) inputmulticast: open/direct/binary udp://:6550 set-modes inputmulticast [multicast-groups: copy compose/deep[[239.2.0.81 (mon-address)]] ] listen: open/direct/binary/no-wait tcp://:4550 output-ports: copy [] forever [ port: wait [listen inputmulticast] case [ port = listen [ append output-ports first listen ] 'else [ data: copy inputmulticast foreach port output-ports [ insert port data ] ] ] Best Regards Leon