This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't get sockets to work


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]