Skip to content

how to close connection? (If use documentDB, it is necessary) #367

@justintien

Description

@justintien

I use Azure DocumentDB,
and use php 7.1 + mongo-php-library

DocumentDB seems auto disconnect when some time...
and php use connection pool by default (mongodb driver),
and no close function,
resulting in many CLOSE_WAIT (bad connection pool),
so next user to connection will be db error,
I changed options serverSelectionTryOnce to false,
solved db error issue, but it slow to connection db (retry),

so I don't know best solution...

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