[easyapns:198] Connection timed out

1,040 views
Skip to first unread message

Zhongcai Ng

unread,
Apr 21, 2010, 8:52:18 PM4/21/10
to Easy APNs
Hi,

Thanks for coming out with Easy APNs.
This is the response I get after sending the message out using
apns.php?task=fetch.
Not sure if it's related as well, but it took half a day for my server
to register the iPhone device on the mySQL.
Thanks again for any help...


Warning: stream_socket_client() [function.stream-socket-client]:
unable to connect to ssl://gateway.sandbox.push.apple.com:2195
(Connection timed out) in /home/ngzhongc/public_html/classes/
class_APNS.php on line 380

Notice: Failed to connect to APNS: 110 Connection timed out. 1)
APNS::__construct -> File: apns.php (line 52) 2) APNS::_fetchMessages -
> File: class_APNS.php (line 196) 3) APNS::_pushMessage -> File:
class_APNS.php (line 355) 4) APNS::_triggerError -> File:
class_APNS.php (line 384) in /home/ngzhongc/public_html/classes/
class_APNS.php on line 488

Warning: fclose(): supplied argument is not a valid stream resource
in /home/ngzhongc/public_html/classes/class_APNS.php on line 397

Warning: stream_socket_client() [function.stream-socket-client]:
unable to connect to ssl://feedback.sandbox.push.apple.com:2196
(Connection timed out) in /home/ngzhongc/public_html/classes/
class_APNS.php on line 414

Notice: Failed to connect to device: 110 Connection timed out. 1)
APNS::__construct -> File: apns.php (line 52) 2) APNS::_fetchMessages -
> File: class_APNS.php (line 196) 3) APNS::_pushMessage -> File:
class_APNS.php (line 355) 4) APNS::_checkFeedback -> File:
class_APNS.php (line 399) 5) APNS::_triggerError -> File:
class_APNS.php (line 416) in /home/ngzhongc/public_html/classes/
class_APNS.php on line 488

Warning: fread(): supplied argument is not a valid stream resource in /
home/ngzhongc/public_html/classes/class_APNS.php on line 417

Warning: fclose(): supplied argument is not a valid stream resource
in /home/ngzhongc/public_html/classes/class_APNS.php on line 426

--
You received this message because you are subscribed to the Google
Groups "Easy APNS" group.
To post to this group, send email to easy...@googlegroups.com
To unsubscribe from this group, send email to
easyapns+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/easyapns?hl=en

Zhongcai Ng

unread,
Apr 22, 2010, 11:31:45 PM4/22/10
to Easy APNs
Hi all,

My apns.log as follows:
Is it because my server does not allow for ssl?

Failed to connect to APNS: 110 Connection timed out.

1) APNS::__construct -> File: apns.php (line 52)
2) APNS::_fetchMessages -> File: class_APNS.php (line 196)
3) APNS::_pushMessage -> File: class_APNS.php (line 355)
4) APNS::_triggerError -> File: class_APNS.php (line 384)

Failed to connect to device: 110 Connection timed out.

1) APNS::__construct -> File: apns.php (line 52)
2) APNS::_fetchMessages -> File: class_APNS.php (line 196)
3) APNS::_pushMessage -> File: class_APNS.php (line 355)
4) APNS::_checkFeedback -> File: class_APNS.php (line 399)
5) APNS::_triggerError -> File: class_APNS.php (line 416)

Zhongcai Ng

unread,
Apr 24, 2010, 5:03:42 AM4/24/10
to Easy APNs
Solved. Problem with port 2195 n 2196

John Jones

unread,
Nov 2, 2012, 1:21:56 PM11/2/12
to easy...@googlegroups.com
Can you try to connect to the server on the port via telnet or something else to ensure firewalls etc are not blocking you.

Sent from my iPhone

On 2 Nov 2012, at 13:40, ramesh p <luvvs...@gmail.com> wrote:

Hi all,

This is my Error :

Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection timed out) in/home/website/directory/public_html/apns/class_APNS.php on line 454

Notice: Failed to connect to APNS: 110 Connection timed out. 1) APNS::__construct -> File: apns.php (line 54) 2) APNS::_fetchMessages -> File: class_APNS.php (line 232) 3) APNS::_iterateMessages -> File: class_APNS.php (line 381) 4) APNS::_connectSSLSocket -> File: class_APNS.php (line 431) 5) APNS::_triggerError -> File: class_APNS.php (line 456) in/home/website/directory/public_html/apns/class_APNS.php on line 669

Notice: A connected socket to APNS wasn't available. 1) APNS::__construct -> File: apns.php (line 54) 2) APNS::_fetchMessages -> File: class_APNS.php (line 232) 3) APNS::_iterateMessages -> File: class_APNS.php (line 381) 4) APNS::_pushMessage -> File: class_APNS.php (line 433) 5) APNS::_triggerError -> File: class_APNS.php (line 500) in/home/website/directory/public_html/apns/class_APNS.php on line 669


Plz reply me ASAP...

Regards,
ramesh.,
Reply all
Reply to author
Forward
0 new messages