Because of a change in TLS socket handling the connection to APNS would never be established under 0.11
This commit is contained in:
Andrew Naylor 2013-09-22 22:58:18 +01:00
Родитель 3e0f4ebc90
Коммит 12a8c1417c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -183,7 +183,7 @@ Connection.prototype.connect = function () {
// We pass in our own Stream to delay connection until we have attached the
// event listeners below.
socketOptions.socket = new net.Stream();
socketOptions.socket = new net.Socket();
this.socket = tls.connect(
this.options['port'],
@ -208,7 +208,7 @@ Connection.prototype.connect = function () {
// The actual connection is delayed until after all the event listeners have
// been attached.
socketOptions.socket.connect(this.options['port'], this.options['gateway']);
this.socket.connect(this.options['port'], this.options['gateway']);
}.bind(this)).fail(function (error) {
debug("Module initialisation error:", error);