looping=false;
    public void run() {        Socket sock;        ObjectInputStream input;        ObjectOutputStream output=null;        GossipData gossip_req, gossip_rsp;        while(true) {            try {                sock=srv_sock.accept();                    if(log.isInfoEnabled()) log.info("accepted connection from " + sock.getInetAddress() +                                                     ':' + sock.getPort());                sock.setSoLinger(true, 500);                input=new ObjectInputStream(sock.getInputStream());                gossip_req=(GossipData) input.readObject();                gossip_rsp=processGossip(gossip_req);                if(gossip_rsp != null) {                    output=new ObjectOutputStream(sock.getOutputStream());                    output.writeObject(gossip_rsp);                    output.flush();                    output.close();                }                input.close();                sock.close();            }            catch(Exception ex) {                if(log.isErrorEnabled()) log.error("exception=" + ex);                ex.printStackTrace(); // +++ remove                continue;            }        }    }