[2196] in java-interest

home help back first fref pref prev next nref lref last post

Why does clientIsOpen() return false?

daemon@ATHENA.MIT.EDU (Robert Uomini)
Tue Sep 26 18:44:41 1995

Date: Tue, 26 Sep 1995 13:07:58 -0700
From: uomini@fractals.fractals.com (Robert Uomini)
To: java-interest@java.sun.com

Hi,

I have a Java application consisting of a server and two clients. The
server code creates connections to two ports, like so:

  public static void main (String args[])
    {
    ms1 = new StatsServer();
    ms1.startServer(8095);
    ms2 = new StatsServer2(ms1);
    ms2.startServer(8096);
    }

The StatsServer class handles requests from one client, and the
StatsServer2 class handles requests from the other. When request
comes in to StatsServer.serviceRequest(), the information is
supposed to be forwarded to the other.

The respective serviceRequest() methods get called, so I know
the port connections are good, but  

	      System.out.println(ms2.clientIsOpen());

returns false, when called from StatsServer.serviceRequest(), even though
the client connection is open and packets are flowing.

I reported this as a bug to the Java team a while back, but never received
a reply. Any ideas? Thanks.

Bob
---
Robert Uomini
The Fractal Images Company (http://www.fractals.com)
Voice: 510-528-0258/800-548-0258
Fax:   510-528-0243
*******************************************************************************
*  Buying or selling a home? Come visit the most comprehensive set of	      *
*  residential real estate listings and related services on the Internet:     *
*  The FractalNet Real Estate Server, http://www.fractals.com/realestate.html *
*******************************************************************************

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post