]
Bela Ban resolved JGRP-1837.
----------------------------
Resolution: Done
Stopping FD_SOCK takes too long
-------------------------------
Key: JGRP-1837
URL:
https://issues.jboss.org/browse/JGRP-1837
Project: JGroups
Issue Type: Bug
Affects Versions: 3.4.4
Reporter: Dan Berindei
Assignee: Bela Ban
Fix For: 3.5
When stopping, FD_SOCK tries to shut down its pinger thread and waits for it to end. But
the shutdown is done via {{Thread.interrupt()}}, and the pinger thread run loop resets the
interruption status in {{fetchPingAddress()}} (actually {{Promise.getResult()}}). So the
stop method ends up taking 300ms ({{Global.THREAD_SHUTDOWN_WAIT_TIME}}) waiting for the
pinger thread to finish, almost every time.