Re: [Simpleweb-Support] PollerInputStream
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2005-12-12 22:29:16
|
Hi Brian, I have been testing this also. Does this have any ill effects? I have tested this on Linux and Windows and there are no problems? It works fine for both 1.4 and 1.5? Is this causing problems for you? I have noticed a rather large performance increase for Linux and Windows using the new PollerInputStream. If this is causing problems you can avoid blocking by changing line 175 from peek(); --> peek(1); And change line 105 from this.sock = sock; --> this.sock = pipe.sock; Niall --- Brian Davis <wic...@gm...> wrote: > Also happens on the following environment. > > Current Time is Mon Dec 12 15:57:37 CST 2005 > Server is running at 127.0.0.1 port 2000 > Java Version : 1.5.0_05 > Java Vendor : Apple Computer, Inc. > > This affects the following classes: > > PollerInputStream > Poller > BasicPoller > > Thanks! > > > > On 12/12/05, Brian Davis <wic...@gm...> > wrote: > > Java(TM) 2 Runtime Environment, Standard Edition > (build 1.4.2_09-232) > > Java HotSpot(TM) Client VM (build 1.4.2-54, mixed > mode) > > > > > > On 12/12/05, Niall Gallagher > <gal...@ya...> wrote: > > > Hi Brian, > > > > > > Thanks for this, ill check this out. I assume > that you > > > are using Java 1.4? > > > > > > Niall > > > > > > --- Brian Davis <wic...@gm...> wrote: > > > > > > > When upgrading from 2.7.2 to 2.7.3 the new > > > > PollerInputStream breaks > > > > the regression tests in such a way that > reading > > > > multiple requests > > > > blocks until the configurator times out. > > > > > > > > The problem was fixed by going back to the old > > > > PollerInputStream that > > > > is based upon the PushBackInputStream > > > > > > > > test below: > > > > > > > > public void test1325() throws Exception > > > > { > > > > File dir = new File("test/carol"); > > > > > > > > File[] list = dir.listFiles(); > > > > > > > > for (int i = 0; i < list.length; i++) > > > > { > > > > File tmp = list[i]; > > > > > > > > String path = > tmp.getAbsolutePath(); > > > > > > > > int x = path.lastIndexOf('/'); > > > > > > > > if (x != -1) > > > > { > > > > path = path.substring(x+1); > > > > } > > > > > > > > HttpConfiguration config = new > > > > HttpConfiguration(); > > > > > > > > config.setRequest("GET", > > > > "http://127.0.0.1:2000/carol/" + path); > > > > > > > > Client http = new Client(); > > > > > > > > http.open(config); > > > > http.send(); > > > > > > > > > Assert.assertTrue(http.getStatusCode() > > > > == 200); > > > > } > > > > } > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > Do > > > > you grep through log files > > > > for problems? Stop! Download the new AJAX > search > > > > engine that makes > > > > searching your log files as easy as surfing > the > > > > web. DOWNLOAD SPLUNK! > > > > > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > > > > > _______________________________________________ > > > > Simpleweb-Support mailing list > > > > Sim...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > > > Niall Gallagher > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > protection around > > > http://mail.yahoo.com > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > Do you grep through log files > > > for problems? Stop! Download the new AJAX > search engine that makes > > > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > > > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |