diff options
author | Gurmeen Bindra <gurmeen.bindra@isode.com> | 2012-08-16 15:59:36 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-08-20 10:27:22 (GMT) |
commit | ef3a184261c2df7bcf5c8ab155915cf2521e04f1 (patch) | |
tree | f5590233fa5fa405136c1e19e8578d5f77211efa /COPYING | |
parent | a22d6c1c23f06bb4dbc8b5c72177ebf27b239482 (diff) | |
download | stroke-ef3a184261c2df7bcf5c8ab155915cf2521e04f1.zip stroke-ef3a184261c2df7bcf5c8ab155915cf2521e04f1.tar.bz2 |
Close socketChannel in finally block
In one of my testing scenario, socket was not getting closed. This was happening when
an XMPP client was connecting to a domain which was different from the domain in the
jabber ID of the connection user. Moving the close call to a finally block ensures that
socket gets closed in all scenarios.
Test-information:
I created an IM domain j.com on my XMPP Server and then added a user with that
domain (user@j.com). Then I tried connecting to my Primary domain using this
new user. After removing j.com, I could an increase in number of sockets after
every poll (coreclient.connect()) but not after this patch.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions