-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dmitry,

Dmitry Kandalov wrote:
> Say I have code like this:
> [snip]
>         socket = new Socket( request.getLocalAddr(), request.getLocalPort()
> );
>         socket.getOutputStream().write( requestString.getBytes( "ISO-8859-1"
> ) );
>         socket.getOutputStream().write( headersString.getBytes( "ISO-8859-1"
> ) );
>         socket.getInputStream().read(); // <----- it hangs here

Try calling "flush" on your output stream, and possibly even closing it
if you have to.

Any reason not to use java.net.URLConnection for this?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWHJc9CaO5/Lv0PARAhYGAJ4kIwmkMknbHRySI9qeyfcyq9H8wwCguTov
TQkXKOaix126+pZc0icE+uI=
=lQMl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to