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

WebClient not use in same Verticle or thread with self create #32

Closed
coverdh opened this issue Jun 13, 2017 · 6 comments
Closed

WebClient not use in same Verticle or thread with self create #32

coverdh opened this issue Jun 13, 2017 · 6 comments
Labels

Comments

@coverdh
Copy link

coverdh commented Jun 13, 2017

WARN Reusing a connection with a different context: an HttpClient is probably shared between different Verticles
http://vertx.io/docs/vertx-core/java/#_httpclient_usage

WebClient same
....

@ruslansennov
Copy link
Member

Hi @coverdh
Could you provide a small reproducer?

@vietj
Copy link
Contributor

vietj commented Jun 13, 2017

this likely happens because the consul client is shared between different threads, you can avoid this by using a Verticle for your code.

@coverdh
Copy link
Author

coverdh commented Jun 14, 2017

@vietj I avoided the problem in this way ,Thanks
But like vert.x's webclient, it's not very convenient to use

@coverdh
Copy link
Author

coverdh commented Jun 14, 2017

@ruslansennov I use webclient to reproduce the problem in a high load environment, which is also reflected in the webclient documentation.
But the consul-client I did not reproduce in the test environment, the production environment will occasionally report the WARN

@ruslansennov
Copy link
Member

ruslansennov commented Jul 13, 2017

@coverdh is it possible to check the latest snapshot version in your environments?

@ruslansennov
Copy link
Member

released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants