Skip to content

Design behavior around timeouts and multiplexing #3110

Closed as not planned
Closed as not planned

Description

@roji

We don't currently handle timeouts with multiplexing. Think about this for both reading and writing.

Note that currently, if a non-multiplexed command is executed, it sets the sync timeout on the underlying socket (and will store it on the buffers for async timeout). If the connection is then returned to multiplexing mode (e.g. the transaction is completed), the timeout is unchanged, and therefore leaks from non-multiplexed to multiplexed operations.

Activity

  1. added this to the 5.0 milestone on Aug 15, 2020
  2. changed the title [-]Design behaviorr around timeouts and multiplexing[/-] [+]Design behavior around timeouts and multiplexing[/+] on Aug 15, 2020
  3. modified the milestones: 5.0, 6.0.0 on Sep 17, 2020
  4. modified the milestones: 6.0.0, 7.0.0 on Oct 3, 2021
  5. vonzshik commented on Nov 5, 2021

    @vonzshik
    Contributor

    One of the problems with #3809 seems to be this (specifically, one thread may change timeout via COPY operation). Maybe for now we should just always reset timeout to 0 for every command?

  6. vonzshik commented on Dec 19, 2021

    @vonzshik
    Contributor

    @roji ping

  7. roji commented on Dec 31, 2021

    @roji
    MemberAuthor

    Coming back to this after a while.

    Sure, makes sense at least as a temporary solution, especially if it's blocking #3809 (it would be really nice to get that in).

  8. modified the milestones: 7.0.0, Backlog on Sep 11, 2022
  9. samcarton commented on Jan 24, 2024

    @samcarton

    @roji with regards to this, we're using multiplexing and experiencing shorter-than-expected timeouts - is it just not implemented yet? e.g. some of our longer queries are timing out after 15s (the connection timeout) instead of the expected 30s (the command timeout)?
    The weird thing is the behaviour doesn't seem consistent, sometimes it times out after 30s and sometimes it goes back to 15s for the exact same query.

  10. added theissue type on Jun 14, 2025
  11. NinoFloris commented on Mar 14, 2026

    @NinoFloris
    Member

    Multiplexing was removed in #6457

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions