mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-01-07 15:33:08 +00:00
Revert "udp client: unref the socket"
This reverts commit 6f1aa981d42169c794b97879bbc2d3e6cf3c8d5d. Conflicts: index.js
This commit is contained in:
parent
14034c2848
commit
cc4c73ec24
4
index.js
4
index.js
@ -170,7 +170,9 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
|
|||||||
var socket = dgram.createSocket('udp4')
|
var socket = dgram.createSocket('udp4')
|
||||||
var transactionId = new Buffer(hat(32), 'hex')
|
var transactionId = new Buffer(hat(32), 'hex')
|
||||||
|
|
||||||
socket.unref()
|
var timeout = setTimeout(function () {
|
||||||
|
error('tracker request timed out')
|
||||||
|
}, 15000)
|
||||||
|
|
||||||
if (opts.event !== EVENTS.stopped) {
|
if (opts.event !== EVENTS.stopped) {
|
||||||
// if we're sending a stopped message, we don't really care if it arrives, so don't
|
// if we're sending a stopped message, we don't really care if it arrives, so don't
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user