Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

[bug] does not release socket resource

$
0
0

File:

org.jivesoftware.openfire.net.BlockingAcceptingMode.java

Code:

  @Override  public void run() {        while (notTerminated) {            try {                Socket sock = serverSocket.accept();                if (sock != null) {                    Log.debug("Connect " + sock.toString());                    SocketReader reader =                            connManager.createSocketReader(sock, false, serverPort, true);                    Thread thread = new Thread(reader, reader.getName());                    thread.setDaemon(true);                    thread.setPriority(Thread.NORM_PRIORITY);                    thread.start();                }            }            catch (IOException ie) {                if (notTerminated) {                    Log.error(LocaleUtils.getLocalizedString("admin.error.accept"),                            ie);                }            }            catch (Throwable e) {                Log.error(LocaleUtils.getLocalizedString("admin.error.accept"), e);            }        }    }

 

Socket does not released when throw Exceptions in openfire 3.9.3


Viewing all articles
Browse latest Browse all 10742

Trending Articles