-
Notifications
You must be signed in to change notification settings - Fork 241
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
exception warnings in log #737
Comments
Hey @awb99!
That's most likely the opposite. If you don't want to keep the connection open for multiple requests, you can set [1] : https://github.com/clj-commons/aleph/blob/master/src/aleph/http.clj#L168 |
Thanks @arnaudgeiser ! I am sending out a lot of http requests. What I Notice is that whenever I see this log entries that some of my http requests never return. So my fear is that aleph is not getting this exceptions and just writes them to a log. I use manifold |
Yes, this should not happen. A request should always end up in a terminal state and should somehow return. You should be able to use Can you share some code with us so we can try to reproduce your scenario? [1] : https://github.com/clj-commons/aleph/blob/master/src/aleph/http/client.clj#L965 |
So what I am doing is I am runnning a few threads in parallel, that work through a seq of tasks The function hat I am using is download-link-info in When I ran this on 2000 requests, at some level the exceptions would be logged, and my task-runner I am using missionary as a FRP framework, and I made this wrapper code so I can use aleph from When I ran into this issue, I have written a wrapper for clj-http and switched to clj-http: The webserver I am getting the data from is kibot.com; and unfortunately I cannot share my account Perhaps it would be easiest if I find a server that never responds to a head (or get) request at all, and just I would like to use aleph, because its threading model is pretty good. |
I would like to reproduce your scenario by doing exactly. Unfortunately, I didn't have time to look at it for now. I'm going to give it a shot over the course of the next week. |
I just had a few more of this errors in an endpoint that does not require credentials. I believe that I could setup a a deps.edn alias in one of my projects to get this error more consistently. So I would setup one Version that works with clj-http and another with aleph that makes errors. Should I Try to do that? |
When I use aleph http client, at some point I am getting this exceptions in the application log.
I dont think it is an issue; I believe they happen after I make a series of requests. So
what I guess is happing is that netty is closing connections that it has opened, and somehow
aleph does not catch this exceptions, this is why I see them as warnings in the log.
Any ideas what should be done?
Thanks!!
Below is the log:
The text was updated successfully, but these errors were encountered: