Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Timeout error while getting session info #20

Open
indusamobility opened this issue Sep 15, 2015 · 2 comments
Open

Timeout error while getting session info #20

indusamobility opened this issue Sep 15, 2015 · 2 comments

Comments

@indusamobility
Copy link

i have xmpp prebind configured as follows

connect($username, $password); $xmppPrebind->auth(); $sessionInfo = $xmppPrebind->getSessionInfo(); echo json_encode($sessionInfo); ?>

but i am getting timeout error in a browser and not able to access the session info.

error

i am using Openfire 3.10.2

i am able to login successfully that i can see from FirePHP , but not able to get session info

' cnNwYXV0aD01MWNkOTdjNjMxNjU2YzY0NTk0YTZiY2ExNjhiY2U0Yg== '

@jo-san
Copy link

jo-san commented Sep 15, 2015

Hi indusamobility,

This is the PHP execution time out error. Default time limit for a script execution is 30 seconds. You can increase the limit to avoid these errors in the future

adding the below line will temporary solution (only this script execution)
ini_set('max_execution_time', 300); //300 seconds = 5 minutes

If you want to increase the limit to all the script executions then follow either of this
Edit php.ini
Find this line: max_execution_time
Change its value to 300:
max_execution_time = 300 // 300 means 5 minutes of execution time for the http request.

or via .htaccess file
Just open the .htaccess file and add below line,
php_value max_execution_time 300

@indusamobility
Copy link
Author

now i end it up with this error now :(

error1

`SENT

C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM68:4`

RECV: <body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" from="worklight81" authid="13d5f589" sid="13d5f589" secure="true" requests="2" inactivity="30" polling="5" wait="60"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session></stream:features></body> C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM69:4 sid 13d5f589 C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM70:4 encryption used DIGEST-MD5 C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM71:4

`SENT

C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM72:4`

RECV: <body xmlns='http://jabber.org/protocol/httpbind' ack='1360795690'><challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09IndvcmtsaWdodDgxIixub25jZT0iQ2dMcFo0b1NWU1paNlBjTkl1ckRabFBsbHZYTU50RFRUNVVKVWphKyIscW9wPSJhdXRoIixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==</challenge></body> C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM73:4 DIGEST-MD5 Auth String username="nihar",realm="worklight81",nonce="CgLpZ4oSVSZZ6PcNIurDZlPllvXMNtDTT5UJUja+",cnonce="mgF/7UekYHTJlPvF0ZleNO3o18kotwcvRUECoBi1Xzs=",nc=00000001,qop=auth,digest-uri="xmpp/worklight81",response=01750a1af7830c415fc40df387e99d40,maxbuf=65536 C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM74:4

`SENT

dXNlcm5hbWU9Im5paGFyIixyZWFsbT0id29ya2xpZ2h0ODEiLG5vbmNlPSJDZ0xwWjRvU1ZTWlo2UGNOSXVyRFpsUGxsdlhNTnREVFQ1VUpVamErIixjbm9uY2U9Im1nRi83VWVrWUhUSmxQdkYwWmxlTk8zbzE4a290d2N2UlVFQ29CaTFYenM9IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL3dvcmtsaWdodDgxIixyZXNwb25zZT0wMTc1MGExYWY3ODMwYzQxNWZjNDBkZjM4N2U5OWQ0MCxtYXhidWY9NjU1MzY= C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM75:4`

RECV: <body xmlns='http://jabber.org/protocol/httpbind' ack='1360795691'><success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0xZGRkMDA1ODI1ZTNlMTZkNjAxYzhlYTlhYzI0N2E0Mg==</success></body> C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM76:4

`SENT

C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584 VM77:4`

RECV: <body xmlns="http://jabber.org/protocol/httpbind" ack="1360795692"></body> C:\wamp\www\prebind\lib\FirePHP\FirePHP.class.php:584

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

No branches or pull requests

2 participants