Re: AbstractSelectableChannel

Quartz <[email protected]> Tue, 23 Nov 2004 14:43:06 -0800 (PST)
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
> If what you are saying is true, how would you handle
> 3000 connections like this:
> 
> 3000 connections --> stage 1 --> stage 2
> 
> Stage 1: accepts connections and delegate its
> processing to stage 2
> Stage 2: this stage can`t swallow the produced
> channels so will you make a bloquing enqueue here? I
> did it ... my result was a BrokenPipeException because
> network queue got full.


I'm not familiar with selectable stuff.
Like I said, I would 'trust' the kernel to back pressure.
I might be a fool thinking that. Hope not.

But if I have to do something about it, I would start with 
AbstractSelectableChannel.configureBlocking(boolean block)
It seams it can be changed on the fly.

Otherwise,
http://java.sun.com/developer/JDCTechTips/2004/tt0914.html#1
or
http://java.sun.com/j2se/1.4.2/docs/guide/nio/



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/