Skip to content

Socket hangs up in some cases #51

Closed
@idy

Description

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

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

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