Skip to content

Allow custom HTTP Client in SDK#96

Merged
rickyrombo merged 2 commits intomainfrom
mjp-custom-http-client
Jan 14, 2026
Merged

Allow custom HTTP Client in SDK#96
rickyrombo merged 2 commits intomainfrom
mjp-custom-http-client

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

Needed this to be able to set some TLS settings for local dev. Separately, also found that it was keeping me from using the SDK to do downloads/streams as it would time out after 30s.

  • Keeps existing behavior of defaulting to 30s timeout
  • Allows specifying own custom HTTP client

Probably makes more sense to use the SDK as each individual piece... like the timeout/http client should probably be different for the Mediorum service vs core... so maybe not the right approach here and we should initialize the different clients separately on the consumer side?

Thoughts?


uploads := []*Upload{}
ss.crud.DB.Where("template = 'audio' and status in ?", []string{newStatus, busyStatus, errorStatus}).Find(&uploads)
// Only select uploads that have a CID set to avoid race condition with TUS uploads
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just confirming that there's no other chances where orig file cid can be null?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if there was, there'd be no way for the transcoder to transcode as it wouldn't be able to fetch the content.

@rickyrombo rickyrombo merged commit 15df112 into main Jan 14, 2026
4 checks passed
@rickyrombo rickyrombo deleted the mjp-custom-http-client branch January 14, 2026 17:57
raymondjacobson pushed a commit that referenced this pull request Feb 6, 2026
* Allow custom httpo client in SDK

* prevent transcode jobs from trying to run on incomplete uploads
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.

2 participants