diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-02 00:01:19 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-02 00:01:19 +0200 |
commit | d18699ca5673d2ac81c70e3ff367dd332f5de34d (patch) | |
tree | 7ba8bb218eb0b032426060da62c5ba998f98d938 /src/support | |
parent | d68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e (diff) | |
download | TwitterDataAnalytics-d18699ca5673d2ac81c70e3ff367dd332f5de34d.tar.gz |
Avoid hang during close
Apparently the socket operations are blocking in a way such that even
interrupt() cannot stop it. Close the socket (which will generate an
IOException masked as JSONException) to immediately close the socket.
Also do not leak a socket if an error occurred in the Worker
constructor (when a Stream connection is set up).
Diffstat (limited to 'src/support')
0 files changed, 0 insertions, 0 deletions