Skip to content

Conversation

@camgaertner
Copy link
Collaborator

Pre.js is now built separately and includes pure functions we use in jsfetch. (So it can be reviewed in our other PR)

There's a lot of refactoring in jsfetch.c, the main purpose was to add retry support when reader.read() fails, but other improvements were made around aborting, retries, & timeouts. The diff may be messy to read, because most of jsfetch.c has changed. The most important changes are in jsfetch_open_js, jsfetch_read_js, and jsfetch_read.

* Add read timeout & fetch timeout (30s)
* Improve aborting behavior
* Add support for retrying after read() failures
* Trigger AbortSignal before aborting ffmpeg process - to help ensure
  fetches are aborted
* Add functions to set read/fetch timeouts for testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants