Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http agent - Allow to graceful ignore if discovery cannot start discovery multicast #135

davsclaus opened this issue Mar 29, 2014 · 1 comment


Copy link

@davsclaus davsclaus commented Mar 29, 2014


It would be good if there was an option you could turn on to graceful ignore if multicast discovery cannot be started. And maybe just log a INFO without that stracktrace, if it cannot be started but it's ignored.

For example with a new parameter

Copy link

@rhuss rhuss commented Mar 31, 2014

I tried to be defensive for the multicast stuff anyways (considering it as an non-super-critical 'addon'), but it probably wasn't enough:

if (NetworkUtil.isMulticastSupported(n)) {
   pSocket.joinGroup(pSocketAddress, n);

public static boolean isMulticastSupported(NetworkInterface pNif) {
    return pNif != null && checkMethod(pNif, isUp) && 
        checkMethod(pNif, supportsMulticast);

etc ...

I will catch the exception here, probably logging (if a logger is not to far away at this point) it as a warning (with better context info).

Will be fixed in 1.2.1.

@rhuss rhuss added this to the 1.2.1 milestone Mar 31, 2014
@rhuss rhuss closed this in 06403b2 Mar 31, 2014
@rhuss rhuss modified the milestone: 1.2.1 Mar 31, 2014
rhuss added a commit that referenced this issue Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants