BLUE
PHP 7.4.33
Path:
/var/www/idmc.bitkit.dk/httpdocs/node_modules/mysql/lib
Run
Logout
Edit File
Size: 1.66 KB
Close
/var/www/idmc.bitkit.dk/httpdocs/node_modules/mysql/lib/PoolConnection.js
Text
Base64
var inherits = require('util').inherits; var Connection = require('./Connection'); var Events = require('events'); module.exports = PoolConnection; inherits(PoolConnection, Connection); function PoolConnection(pool, options) { Connection.call(this, options); this._pool = pool; // Bind connection to pool domain if (Events.usingDomains) { this.domain = pool.domain; } // When a fatal error occurs the connection's protocol ends, which will cause // the connection to end as well, thus we only need to watch for the end event // and we will be notified of disconnects. this.on('end', this._removeFromPool); this.on('error', function (err) { if (err.fatal) { this._removeFromPool(); } }); } PoolConnection.prototype.release = function release() { var pool = this._pool; if (!pool || pool._closed) { return undefined; } return pool.releaseConnection(this); }; // TODO: Remove this when we are removing PoolConnection#end PoolConnection.prototype._realEnd = Connection.prototype.end; PoolConnection.prototype.end = function () { console.warn( 'Calling conn.end() to release a pooled connection is ' + 'deprecated. In next version calling conn.end() will be ' + 'restored to default conn.end() behavior. Use ' + 'conn.release() instead.' ); this.release(); }; PoolConnection.prototype.destroy = function () { Connection.prototype.destroy.apply(this, arguments); this._removeFromPool(this); }; PoolConnection.prototype._removeFromPool = function _removeFromPool() { if (!this._pool || this._pool._closed) { return; } var pool = this._pool; this._pool = null; pool._purgeConnection(this); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
protocol
DIR
-
drwxrwxr-x
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Connection.js
13.51 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConnectionConfig.js
6.46 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Pool.js
7.41 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PoolCluster.js
6.32 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PoolConfig.js
1.03 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PoolConnection.js
1.66 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PoolNamespace.js
3.14 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PoolSelector.js
588 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).