summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-02 00:01:19 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-02 00:01:19 +0200
commitd18699ca5673d2ac81c70e3ff367dd332f5de34d (patch)
tree7ba8bb218eb0b032426060da62c5ba998f98d938 /src/support
parentd68b9ac03cf2dbaf55d1e848c9df0a4b5957fc4e (diff)
downloadTwitterDataAnalytics-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