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

Update init.R to fix issue # 57 #59

Merged
merged 1 commit into from Jan 7, 2020
Merged

Conversation

@ashannon
Copy link
Contributor

@ashannon ashannon commented Jan 7, 2020

Changed .getCurlHandle() to make it use HTTP v1.1 instead of v2.0. This change has resolved my issue where pbPost() would randomly fail due to an an HTTP2 framing layer issue caused by curl::curl_fetch_memory(pburl, handle=h)

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Jan 7, 2020

You write (and wrote in the previous) that you change from 2.0 to 1.1. But the code seems to set a '2'. Which part am I not reading correctly?

@ashannon
Copy link
Contributor Author

@ashannon ashannon commented Jan 7, 2020

It's a bit misleading, but 2 is an enum which corresponds to http v1.1 according to the the curl documentation (https://cran.r-project.org/web/packages/curl/vignettes/intro.html#disabling_http2)

http v2.0 is enum = 3 I believe, which is used by default according to jeroen https://github.com/eddelbuettel/rpushbullet/issues/57#issuecomment-554952335

@eddelbuettel eddelbuettel merged commit a309bae into eddelbuettel:master Jan 7, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.