]> source.dussan.org Git - jgit.git/commit
Fix InterruptTimer leak in BasePackConnection 67/53767/4
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 14 Aug 2015 12:03:57 +0000 (14:03 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 16 Dec 2015 13:19:38 +0000 (14:19 +0100)
commit6340c76d8b50a48c3700f874bad3e6ece7349802
tree07e687f70225fc2efac6eb7dc1cfea2df315d5a6
parent2647d024afe7aac427ab37bba1655f2e54b257d5
Fix InterruptTimer leak in BasePackConnection

When setting timeout on push, BasePackConnection creates a timer, which
will be terminated when push finishes. But, when using
SmartHttpPushConnection, it dropped the first timer created in the
constructor and then created another timer in doPush. If new threads are
created faster than the gc collects then this may stop the service if
it's hitting the max process limit. Hence don't create a new timer if it
already exists.

Bug: 474947
Change-Id: I6746ffe4584ad919369afd5bdbba66fe736be314
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackConnection.java