mohamedsaeed27 / xmpphp

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

warning stram_select() when running sendmessage_example.php #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. i run the sendmessage_example.php (already configure with my login and
password)
2.
3.

What version of the product are you using? On what operating system?
xmpphp-0.1beta-r49.tar.gz

Please provide any additional information below.
the console always print
PHP Warning:  stream_select(): unable to select [9]: Bad file descriptor
(max_fd
=0) in C:\My Documents\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning:  stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning:  stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning:  stream_select(): unable to select [9]: Bad file descriptor
(max_fd
=0) in C:\My Documents\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302
PHP Warning:  stream_select(): 11 is not a valid stream resource in C:\My
Docume
nts\Pulsa\xmpphp\XMPPHP\XMLStream.php on line 302

Original issue reported on code.google.com by fransg....@gmail.com on 18 Jul 2008 at 10:08

GoogleCodeExporter commented 8 years ago
It will do this if you're using a server (like Google Talk) that doesn't 
properly
close the connection.  Suppressing the error for now in SVN.  Since Google Talk
doesn't close the connection properly, the lib is forced to wait a reasonable 
amount
of time in case there is any data the server was sending it when it 
disconnected. 
You can trim this timeout to a shorter amount of time, or use a server that 
doesn't
have this problem.

Original comment by nathanfr...@gmail.com on 18 Jul 2008 at 5:40

GoogleCodeExporter commented 8 years ago
This will be in the next release shortly.

Original comment by nathanfr...@gmail.com on 18 Jul 2008 at 5:49