Skip to content

Support HTTP-Keep-Alive in our XMLHttpRequest implementation - #354

Merged
philippedistributive merged 7 commits into
mainfrom
Xmader/fix/xhr-keepalive
Jun 4, 2024
Merged

philippedistributive merged 7 commits into
mainfrom
Xmader/fix/xhr-keepalive

Conversation

@Xmader

@Xmader Xmader commented May 23, 2024 •

Copy link
Copy Markdown
Member

closes #339

@Xmader Xmader changed the title Add HTTP-Keep-Alive to our XMLHttpRequest implementation Support HTTP-Keep-Alive in our XMLHttpRequest implementation May 23, 2024
Comment thread python/pythonmonkey/builtin_modules/XMLHttpRequest-internal.py Outdated
@Xmader
Xmader marked this pull request as ready for review May 30, 2024 18:46
@philippedistributive

Copy link
Copy Markdown
Contributor

Looks good.

Can you tell us more about the determination of the timeout value?

5s is the default for Node.js's `http.globalAgent`,
see the change history in https://nodejs.org/dist/latest/docs/api/http.html#httpglobalagent
@Xmader

Xmader commented Jun 3, 2024

Copy link
Copy Markdown
Member Author

I changed the timeout to 5s, because 5s is the default for Node.js's http.globalAgent,
see the change history in https://nodejs.org/dist/latest/docs/api/http.html#httpglobalagent

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XHR: aiohttp calls must support HTTP Keep-Alive

2 participants