Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change socket stream timeout #20

Open
matthewknill opened this issue Mar 12, 2023 · 3 comments
Open

Ability to change socket stream timeout #20

matthewknill opened this issue Mar 12, 2023 · 3 comments

Comments

@matthewknill
Copy link

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.

@matthewknill
Copy link
Author

Needed this ability so I've made a fork (matthewknill/xmpp-php) and added setSocketTimeout to the Options class

@Norgul
Copy link
Collaborator

Norgul commented Mar 15, 2023

Hello @matthewknill I'm pressed for the time lately, but feel free to make a PR, I'll gladly merge it in

@4i-helpynet
Copy link

Hello. Not strictly related querstion, sorry about my courage to ask in an active thread here:
I want to create a connection attaching to an outher client with give the SID, RID, JID combo.
How can I get a current connection datas of a client?

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

No branches or pull requests

3 participants