Skip to content

Ability to change socket stream timeout #20

@matthewknill

Description

@matthewknill

We are using this library to set presence on for a number of users on our XMPP server. This seems to work well but the it takes a long time to actually set. After some looking around, I found this to be caused by the following in the Socket class:

protected $timeout = 150000; // changing to 1500 significantly reduced the time taken to set all the presence
// ...
stream_set_timeout($this->connection, 0, $this->timeout);

Unfortunately, it does not seem that I can change this via the Options class.

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