@Override protected ExecutorService createExecutor() { // Attempted workaround for reported bugs on Linux in which gethostbyname does not appear to be properly // thread safe and can cause segfaults on some libc versions. if (System.getProperty("os.name").toLowerCase().contains("linux")) return Executors.newSingleThreadExecutor(new ContextPropagatingThreadFactory("DNS seed lookups")); else return Executors.newFixedThreadPool(seeds.size(), new DaemonThreadFactory("DNS seed lookups")); }
@Override protected ExecutorService createExecutor() { // Attempted workaround for reported bugs on Linux in which gethostbyname does not appear to be properly // thread safe and can cause segfaults on some libc versions. if (System.getProperty("os.name").toLowerCase().contains("linux")) return Executors.newSingleThreadExecutor(new ContextPropagatingThreadFactory("DNS seed lookups")); else return Executors.newFixedThreadPool(seeds.size(), new DaemonThreadFactory("DNS seed lookups")); }
@Override protected ExecutorService createExecutor() { // Attempted workaround for reported bugs on Linux in which gethostbyname does not appear to be properly // thread safe and can cause segfaults on some libc versions. if (System.getProperty("os.name").toLowerCase().contains("linux")) return Executors.newSingleThreadExecutor(new ContextPropagatingThreadFactory("DNS seed lookups")); else return Executors.newFixedThreadPool(seeds.size(), new DaemonThreadFactory("DNS seed lookups")); }
@Override protected ExecutorService createExecutor() { // Attempted workaround for reported bugs on Linux in which gethostbyname does not appear to be properly // thread safe and can cause segfaults on some libc versions. if (System.getProperty("os.name").toLowerCase().contains("linux")) return Executors.newSingleThreadExecutor(new ContextPropagatingThreadFactory("DNS seed lookups")); else return Executors.newFixedThreadPool(seeds.size(), new DaemonThreadFactory("DNS seed lookups")); }