-
Notifications
You must be signed in to change notification settings - Fork 86
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
CRAN release broke curl #123
Comments
Currently,
In the past, it basically called The return values
So if I'm understanding it correctly, in the past, it should have returned TRUE only if there were more callbacks for libuv to process. I'll experiment with it some more though. |
FWIW, in httpuv 1.3.6.2, in a clean R session, this is what I get:
@jeroen I think you were relying on some incidental behavior of |
I think my assumption was that |
We currently use If we make |
Yes I guess that would work. I don't fully recall what edge case I was trying to cover. |
OK, done. |
Thanks! So there is no easy way to make it return |
One complication is that you now can have multiple servers running at the same time. So if the check is, "is a server running?", and the answer is yes, you can't be sure that it's your server or someone else's.
Note that if All that said, it might make sense to add a function that returns a list of running servers. @jeroen I'll also forward you an email I wrote about the changes to httpuv. |
OK thanks. In my code I run only one server. I think the main case I was trying to cover is checking if the server is still alive. But I suppose that never worked the way I thought it did. |
The curl package has a function
curl_echo()
that was broken with the new httpuv release.I think the problem is that previously
httpuv::service()
always returnedTRUE
in case of success. However as if the new version it randomly returns FALSE and TRUE.Is this changed expected?
The text was updated successfully, but these errors were encountered: