Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33264
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2015-12-01 23:02 -0800 |
| References | <75df5111-41b9-4833-8497-69104f011d14@googlegroups.com> <e8a525f0-557c-4331-b69f-211aa3a47ceb@googlegroups.com> |
| Message-ID | <66777da2-bf09-4e0b-a0ce-bd401d74d5a3@googlegroups.com> (permalink) |
| Subject | Re: multithread client socket |
| From | Philipp Kraus <philipp.kraus.flashpixx@gmail.com> |
Am Dienstag, 1. Dezember 2015 20:59:07 UTC+1 schrieb Eric Douglas: > Do you have some sample code? Yes sure: The task building process for my thread-pool: https://github.com/JIM-DB/Java-Client/blob/master/src/main/java/jimdb/Connection.java#L120 The connection call (ITask implements Callable): https://github.com/JIM-DB/Java-Client/blob/master/src/main/java/jimdb/CInsertTask.java#L53 and the socket-opening https://github.com/JIM-DB/Java-Client/blob/master/src/main/java/jimdb/CLink.java#L64 > How are you getting to the socket in use error? The structure works at the moment, but if I have got a lot of tasks I reach a limit to create new sockets > I haven't had to worry about limits to number of open sockets or active threads, so if you find a limit let us know, and you'll have to set up a queue as Martin mentioned. I use a queue but the queue can store some 100k items, so I seems to be, that I reach the limit.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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