🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16624

How to close connection?

#16624
From: Marcel Hell
Date: Wed, 03 Feb 1999 00:00
9 lines
870 bytes
Hi, I have a problem concerning a little chatserver - client situation.
I have a serversocket listening for clients, and if a client requests a
connection the server start a new thread.
The new thread is added to a Vector.
But if the client closes the chatapplet, the thread on the server starts to
consume 30% of processortime, and has to be stopped!
But how on earth can I do that???

Thanx for help
Technical Details
Message-ID: <799vne$io414@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f379900f219926f9,start
X-Google-Attributes: gidf74b3,public
From: "Marcel Hell" <MLP.HELL@student.unimaas.nl>
Subject: How to close connection?
Date: 1999/02/03
Message-ID: <799vne$io414@forums.borland.com>
X-Deja-AN: 440246862
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language