Me too. And looking at the source (via Google search), it looks like that is what is was meant to do. I'm using Sun Java JDK 1.6.0_13.
-----Original Message----- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, April 07, 2009 12:48 PM To: Tomcat Users List Subject: Re: Help with a Tomcat issue??? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason, On 4/6/2009 6:33 PM, Jason Smith wrote: > Sun's implementation of HttpURLConnector apparently creates a new > ChunkedOutputStream every time you call .getOutputStream(). That's obnoxious and completely unexpected. Latest version of Java, huh? Too bad. Obviously, the solution is for your client to cache the result of conn.getOutputStream, but I would have expected conn.getOutputStream to return the same object every time, or at least an object that /felt/ like the same object every time. Strange. > So if I call conn.getOutputStream().close(); 10 times, I get a very > interesting method name. I looked at the source for this, and it was > not apparent that they meant to do this. However, with this code, my > method name becomes: > > 0 > > 0 > > 0 > > 0 > > 0 > > 0 > > 0 > > 0 > > 0 > > POST Nice. - -chbris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknbn9IACgkQ9CaO5/Lv0PDyJACgw9GfbGHvAqUfuaP+vRcNEa0B 2m0An34BtHsiwEZ/G0e0zq7rlbmn8wN4 =Fax0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org