mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-11 16:08:24 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b17ec9cb8 | ||
|
|
71e77561bb |
@@ -1,4 +1,10 @@
|
||||
|
||||
0.6.5 / 2011-01-09
|
||||
==================
|
||||
|
||||
* Make sure not to trigger multiple timeouts when closing
|
||||
* Important fix for polling transports.
|
||||
|
||||
0.6.4 / 2011-01-05
|
||||
==================
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ Client.prototype._onConnect = function(req, res){
|
||||
this.request = req;
|
||||
this.response = res;
|
||||
this.connection = req.connection;
|
||||
|
||||
|
||||
this.connection.addListener('end', function(){
|
||||
self._onClose();
|
||||
});
|
||||
@@ -125,14 +125,11 @@ Client.prototype._onHeartbeat = function(h){
|
||||
};
|
||||
|
||||
Client.prototype._onClose = function(skipDisconnect){
|
||||
if (!this._open) return this;
|
||||
var self = this;
|
||||
if (this._heartbeatInterval) clearTimeout(this._heartbeatInterval);
|
||||
if (this._heartbeatTimeout) clearTimeout(this._heartbeatTimeout);
|
||||
this._open = false;
|
||||
if (this.connection){
|
||||
this.connection.end();
|
||||
this.connection = null;
|
||||
}
|
||||
this.request = null;
|
||||
this.response = null;
|
||||
if (skipDisconnect !== false){
|
||||
@@ -148,6 +145,10 @@ Client.prototype._onClose = function(skipDisconnect){
|
||||
Client.prototype._onDisconnect = function(){
|
||||
if (this._open) this._onClose(true);
|
||||
if (this._disconnectTimeout) clearTimeout(this._disconnectTimeout);
|
||||
if (this.connection){
|
||||
this.connection.end();
|
||||
this.connection = null;
|
||||
}
|
||||
this._writeQueue = [];
|
||||
this.connected = false;
|
||||
if (this.handshaked){
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "name" : "socket.io"
|
||||
, "description" : "The cross-browser WebSocket"
|
||||
, "version" : "0.6.4"
|
||||
, "version" : "0.6.5"
|
||||
, "author" : "LearnBoost"
|
||||
, "licenses" :
|
||||
[ { "type" : "MIT"
|
||||
|
||||
Reference in New Issue
Block a user