Skip to content

audio: set HTTP stream timeout after connect#444

Merged
stintel merged 1 commit intomainfrom
fix/http_stream_timeout_after_connect
Jul 3, 2025
Merged

audio: set HTTP stream timeout after connect#444
stintel merged 1 commit intomainfrom
fix/http_stream_timeout_after_connect

Conversation

@stintel
Copy link
Collaborator

@stintel stintel commented Jul 3, 2025

In commit 67ff035 ("audio: increase HTTP stream timeout after send") we increased the timeout for the HTTP stream to WIS STT after send to 10s, to allow people with slow WIS to still use Willow. For some reason this worked in the 0.3 releases, but it seems this doesn't work anymore after all the bumps of Espressif components in the 0.4 releases.

The commit was wrong in the first place, as we should increase the timeout after initial connect, but before we finish sending, as setting it after we finished sending should result in the connection timing out after 2s while sending.

Set the timeout on the HTTP_STREAM_ON_REQUEST event to fix this.

Fixes: 67ff035 ("audio: increase HTTP stream timeout after send")

In commit 67ff035 ("audio: increase HTTP stream timeout after
send") we increased the timeout for the HTTP stream to WIS STT after
send to 10s, to allow people with slow WIS to still use Willow. For some
reason this worked in the 0.3 releases, but it seems this doesn't work
anymore after all the bumps of Espressif components in the 0.4 releases.

The commit was wrong in the first place, as we should increase the
timeout after initial connect, but before we finish sending, as setting
it after we finished sending should result in the connection timing out
after 2s while sending.

Set the timeout on the HTTP_STREAM_ON_REQUEST event to fix this.

Fixes: 67ff035 ("audio: increase HTTP stream timeout after send")
@stintel stintel merged commit 517d4b5 into main Jul 3, 2025
9 checks passed
@stintel stintel deleted the fix/http_stream_timeout_after_connect branch July 3, 2025 20:46
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.

1 participant