amitmmc1 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Could not connect before timeout. #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i can't send mesege...becouse Could not connect before timeout.

how i can send mesege again :( 

Original issue reported on code.google.com by kambin...@gmail.com on 25 Jun 2009 at 3:38

GoogleCodeExporter commented 8 years ago
same problem

teo

Original comment by matteobi...@gmail.com on 22 Oct 2009 at 5:06

GoogleCodeExporter commented 8 years ago
hosthing problem ??

Original comment by kambin...@gmail.com on 25 Oct 2009 at 7:08

GoogleCodeExporter commented 8 years ago
i dont know ..can help me??

Original comment by kambin...@gmail.com on 1 Jan 2010 at 6:01

GoogleCodeExporter commented 8 years ago
Same problem, can anyone please help me?

Original comment by balan....@gmail.com on 17 Jan 2010 at 6:43

GoogleCodeExporter commented 8 years ago
i thing, use the "daemon" it is a "pear" php

easy way you can use script "set_time_limet(0);" in excute page

Original comment by last_edi...@hotmail.com on 1 Mar 2010 at 11:10

GoogleCodeExporter commented 8 years ago
same problem.. 
I'm trying to connect from local server and from hosting but no results. 
I'm also trying to connect on different XMPP servers  (talk.google.com and 
jabber.ru).. 
Always I got 'Could not connect before timeout.'. Here is verbose logs:

1269283038 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283038 [ERROR]: Could not connect.
1269283043 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283043 [ERROR]: Could not connect.
1269283048 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283048 [ERROR]: Could not connect.
1269283053 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283053 [ERROR]: Could not connect.
1269283058 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283058 [ERROR]: Could not connect.
1269283063 [INFO]: Connecting to tcp://allports.jabber.ru:5222
1269283063 [ERROR]: Could not connect.
Could not connect before timeout.

1269282922 [INFO]: Connecting to tcp://talk.google.com:5222
1269282922 [ERROR]: Could not connect.
1269282927 [INFO]: Connecting to tcp://talk.google.com:5222
1269282927 [ERROR]: Could not connect.
1269282932 [INFO]: Connecting to tcp://talk.google.com:5222
1269282932 [ERROR]: Could not connect.
1269282937 [INFO]: Connecting to tcp://talk.google.com:5222
1269282937 [ERROR]: Could not connect.
1269282942 [INFO]: Connecting to tcp://talk.google.com:5222
1269282942 [ERROR]: Could not connect.
1269282947 [INFO]: Connecting to tcp://talk.google.com:5222
1269282947 [ERROR]: Could not connect.
Could not connect before timeout.

So how I can fix the problem? Can anybody help me?
(I'm realy don't want to debug all XMPPPHP code :D )

Original comment by legendar on 22 Mar 2010 at 3:47

GoogleCodeExporter commented 8 years ago
Exactly same problem here with the latest git.

Original comment by m.botanch@gmail.com on 27 May 2010 at 9:45

GoogleCodeExporter commented 8 years ago
Not working for me either. 

But actually, it worked on localhost, but strangely not in Yahoo web hosting.

I am not sure what the problem is, PHP version, or anything else??

Original comment by jaypatel...@gmail.com on 13 Nov 2010 at 7:13

GoogleCodeExporter commented 8 years ago
It won't work for me in localhost too...

It throws below error...

1294308287 [ERROR]: Could not connect. 1294308292 [ERROR]: Could not connect. 
1294308297 [ERROR]: Could not connect. 1294308302 [ERROR]: Could not connect. 
1294308307 [ERROR]: Could not connect. 1294308312 [ERROR]: Could not connect. 
Fatal error: Uncaught exception 'XMPPHP_Exception' with message 'Could not 
connect before timeout.' in 
/home/sivakumar/workspace/easymedmobile.com/htdocs/test/XMPPHP/XMLStream.php:327
 Stack trace: #0 
/home/sivakumar/workspace/easymedmobile.com/htdocs/test.php(6): 
XMPPHP_XMLStream->connect() #1 {main} thrown in 
/home/sivakumar/workspace/easymedmobile.com/htdocs/test/XMPPHP/XMLStream.php on 
line 327

Original comment by gsiv...@gmail.com on 6 Jan 2011 at 10:03

GoogleCodeExporter commented 8 years ago

same problem.

set_time_limet(0); - didn't work.
on another hosting all working correctly with same php version.

Original comment by Dmitriy....@gmail.com on 22 Feb 2011 at 2:12

GoogleCodeExporter commented 8 years ago
problem solved!
tcp port was closed. Message to support hosting is all of you need ;)

Original comment by Dmitriy....@gmail.com on 22 Feb 2011 at 4:28

GoogleCodeExporter commented 8 years ago
Please help me with details for sending mail to hosting support.

Which tcp port? etc.

Thanks you

Original comment by ananthak...@gmail.com on 18 May 2011 at 12:48

GoogleCodeExporter commented 8 years ago
same with my problem

i use xmpphp rc2 77. with PHP Version 5.2.13
and i use sendmessage_example.php (absolutly i modified that info in there).

i succes to run it in localhost, but i don't know why i can't run it in my web 
hosting. Although i try to upload it in the some of free hosting too.

please help me
thanks

Original comment by darkslay...@gmail.com on 19 Jun 2011 at 4:04

GoogleCodeExporter commented 8 years ago
You should override function connect() in file XMLStream.php (or extend this 
class) with this code
http://www.everfall.com/paste/id.php?5m5g9qqcnawk

Original comment by dvas...@gmail.com on 5 Jan 2012 at 10:32

GoogleCodeExporter commented 8 years ago
i have the same problem 

Original comment by surajroc...@gmail.com on 24 Jan 2013 at 11:16

GoogleCodeExporter commented 8 years ago
is there anyone who can help me ?

Could not connect before timeout.

how to send message in gtalk through php script 

Original comment by surajroc...@gmail.com on 24 Jan 2013 at 11:17

GoogleCodeExporter commented 8 years ago
I solve. Because server php version its 5.2.6, says "Could not connect before 
timeout". In other server with php version 5.2.9 are runned.

Original comment by did...@gmail.com on 5 Sep 2013 at 12:51

GoogleCodeExporter commented 8 years ago
I soloved .
just close your selinux
# setenforce 0

Original comment by e421083...@gmail.com on 23 Jul 2014 at 6:47