Skip to content

Socket hangs up in some cases #51

Description

@idy

I thinks the lock before socket.conn.write cause the problem: https://github.com/globalsign/mgo/blob/master/socket.go#L522

The unlock of this mutx is after the write opreation: https://github.com/globalsign/mgo/blob/master/socket.go#L561

Which caused the socket cannot read while writing.

Activity

  1. added 2 commits that reference this issue on Oct 19, 2017
    6adbadf
    0454966
  2. added a commit that references this issue on Nov 6, 2017
    5be15cc
  3. added 2 commits that reference this issue on Dec 1, 2022
    de32dd0
    a854aab
  4. added a commit that references this issue on Jul 3, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions