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

[REBOL] Re: Rugby: Number of Connections

From: mattsmac::hotmail at: 17-Nov-2003 10:32

What I'm trying to do is have more than 1 server running at one time and allow the client to connect to the least loaded one. Is this not neccesary with Rugby? Matt ------------------------------------------------- Your doing the right thing, but.... Rugby exectues the message once it has arrived completely, returning the result and cleaning up immediately. There is always one thing happening at one time. You're probably looking at efficient networking (and buffering in REBOL), especially with small message sizes, whih Rugby typicall has. The first connection you see (the blank one) is the server port. --Maarten
>-----Original Message----- >From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] On Behalf
Of
>Matt MacDonald >Sent: maandag 17 november 2003 15:48 >To: [rebol-list--rebol--com] >Subject: [REBOL] Rugby: Number of Connections > >I'm trying to get the number of connections on a rugby server.
Looking at
>the source code, I should be able to do something like this: > >num-conn: length? rugby-server/port-q > >but this only ever returns 2. after probing port-q I find that the
first
>object in it is a blank connection and the second is the last
connection
>made. So it looks like port-q does not hold all of the ports on the >server, >just the last one. Any idea how to find the number of total
connections?
>Matt
_________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com