jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

StreamServer does not close threads of closed sockets #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
jsonrpc4j is a great API, in my opinion the best one for jsonrpc and java you 
could find in the internet. But I found a bug in the StreamServer

1. Line 212 You can remove the isConnected method it will never return false if 
the socket was connected=> Java API
2. Line 215 The if(input.available==0)
                {...continue;}-block prevent to leave the loop if the socket was closed. You can remove the block and everything work fine.

with kind regards
bastian

Original issue reported on code.google.com by b.win...@gmx.de on 14 Jan 2013 at 11:11

GoogleCodeExporter commented 8 years ago
Thanks, i'll take a look.

Original comment by brian.di...@gmail.com on 30 Jan 2013 at 5:31

GoogleCodeExporter commented 8 years ago
Thanks, changes made.

Original comment by brian.di...@gmail.com on 16 Feb 2013 at 8:19