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

KTOR-8206 Apply socket and connect timeouts to WS and SSE #4687

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

osipxd
Copy link
Member

@osipxd osipxd commented Feb 19, 2025

Subsystem
Client

Motivation
KTOR-8206 WebSocket and SSE don't respect connection timeout set in the HttpTimeout plugin

Solution
Previously all timeout settings were ignored for WS and SSE requests. I've changed this behavior to ignore only request timeout.

@osipxd osipxd self-assigned this Feb 19, 2025
@osipxd osipxd force-pushed the osipxd/websocket-timeouts branch from 26188c4 to a64bdc9 Compare February 19, 2025 16:23
Copy link
Member

@marychatte marychatte left a comment

Choose a reason for hiding this comment

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

lgtm

@osipxd osipxd marked this pull request as ready for review February 19, 2025 22:37
@osipxd osipxd force-pushed the osipxd/websocket-timeouts branch from a64bdc9 to eb4ea1f Compare February 20, 2025 09:32
@osipxd osipxd enabled auto-merge (squash) February 20, 2025 09:32
@osipxd osipxd merged commit 3bae6f2 into main Feb 20, 2025
13 of 17 checks passed
@osipxd osipxd deleted the osipxd/websocket-timeouts branch February 20, 2025 10:10
@osipxd osipxd linked an issue Feb 20, 2025 that may be closed by this pull request
anton-erofeev pushed a commit to anton-erofeev/ktor that referenced this pull request Feb 23, 2025
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.

[Bug] HttpTimeout does not work for SSE connection
2 participants