We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
版本:1.5.33 问题:多线程下,使用s5代理,发现返回的结果会串。比如5个不同的代理,结果是一样的。
代码:
@Test void testS5Proxy() { ExecutorService executorService = ThreadUtil.newExecutor(); List<AgProxy> list = AgProxy .findAll(Sort.descending("createTime")) .page(0, 100) .list(); list.stream().forEach(agProxy -> { executorService.execute(() -> { validateS5(agProxy); }); }); try { executorService.awaitTermination(100, TimeUnit.MINUTES); } catch (InterruptedException e) { throw new RuntimeException(e); } } private void validateS5(AgProxy proxyParma) { ForestResponse forestResponse = Forest.get("http://ip-api.com/json") .proxy(ForestProxy.socks(proxyParma.getIp(), proxyParma.getPort()).username(proxyParma.getUsername()).password(proxyParma.getPassword())) .connectTimeout(15000) .sync() .maxRetryCount(1) .executeAsResponse(); String resStr = forestResponse.get(String.class); log.info(resStr + proxyParma.toString()); }
The text was updated successfully, but these errors were encountered:
因为有缓存
Sorry, something went wrong.
No branches or pull requests
版本:1.5.33
问题:多线程下,使用s5代理,发现返回的结果会串。比如5个不同的代理,结果是一样的。
代码:
The text was updated successfully, but these errors were encountered: