Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33259

Re: multithread client socket

Path csiph.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail
From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: multithread client socket
Date Tue, 1 Dec 2015 22:01:39 +0100
Organization albasani.net
Lines 15
Message-ID <n3l1rl$sda$1@news.albasani.net> (permalink)
References <75df5111-41b9-4833-8497-69104f011d14@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net 9znB6CGI3TEvNQLwl0/m+OWBXDf0RnG5uMpUfVPreQyFRoi4mobnB4wZqZSh8kwPB+sepqrQwvEUQbfAlz4Dgg==
NNTP-Posting-Date Tue, 1 Dec 2015 21:01:42 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="0YYSh0RhY6QqMi8/tCsBYvliJmQwKDvKHipIiCQuQwRwzk2nRIWlSETK8gVIBRWdrmI3ytL65qWEpnKztVBUiBL8+nXe2NiWaDahkh13vOWLmW1lJVMnmPFLSHPmZ0Ok"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
In-Reply-To <75df5111-41b9-4833-8497-69104f011d14@googlegroups.com>
Cancel-Lock sha1:5iMJ7hBnAvWP+17ytJNsNjh8C98=
Xref csiph.com comp.lang.java.programmer:33259

Show key headers only | View raw


Philipp Kraus schrieb:
> On large datasets the runtime cannot create new
 > socket objects (socket already in use message).
 > The Java client runs explicit socket.close
 > without any error. My idea is, that each thread
 > of the thread-pool holds a member with the socket,
 > but I need must reconnect the client socket on
 > each task, because the server closes the socket.

Its not necessarely the server that closes the socket.
Check your exception handling and socket parameters,
such as time out settings. See also:
http://docs.oracle.com/javase/7/docs/api/java/net/SocketTimeoutException.html

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 09:36 -0800
  Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-01 11:58 -0800
    Re: multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 23:02 -0800
      Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-02 06:39 -0800
  Re: multithread client socket Jan Burse <janburse@fastmail.fm> - 2015-12-01 22:01 +0100
    Re: multithread client socket Jan Burse <janburse@fastmail.fm> - 2015-12-01 22:06 +0100
      Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-01 13:55 -0800
    Re: multithread client socket Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-01 22:04 +0000
      Re: multithread client socket Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2015-12-01 23:04 -0800
        Re: multithread client socket Eric Douglas <e.d.programmer@gmail.com> - 2015-12-02 05:52 -0800
        Re: multithread client socket Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-02 14:38 +0000
  Re: multithread client socket Arne Vajhøj <arne@vajhoej.dk> - 2015-12-05 20:00 -0500

csiph-web