This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Can't get sockets to work
- To: Warren Levy <warrenl@cygnus.com>
- Subject: Re: Can't get sockets to work
- From: Tom Tromey <tromey@cygnus.com>
- Date: 24 May 1999 16:32:24 -0600
- Cc: Lincoln Spiteri <lincoln.spiteri@st.com>, java-discuss@sourceware.cygnus.com
- References: <Pine.SOL.3.91.990524105916.27645A-100000@fencer.cygnus.com>
- Reply-To: tromey@cygnus.com
>>>>> "Warren" == Warren Levy <warrenl@cygnus.com> writes:
Warren> Lincoln, try doing an os.flush(); right after your os.print of
Warren> the echo request. I suspect that the close of the Socket is
Warren> not flushing the output as is apparently happening in the JDK.
Warren> Though adding the os.flush(); fixed the behavior using gcj on
Warren> my platform, it'll take a bit more investigation to determine
Warren> what libgcj should be doing.
I don't think that either the JCL or the JLS requires a flush when
closing in this situation (or in most other situations).
I guess one might argue that we ought to do it for compatibility
anyway. I don't have an opinion on that.
Tom