We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14034c2 commit cc4c73eCopy full SHA for cc4c73e
index.js
@@ -170,7 +170,9 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
170
var socket = dgram.createSocket('udp4')
171
var transactionId = new Buffer(hat(32), 'hex')
172
173
- socket.unref()
+ var timeout = setTimeout(function () {
174
+ error('tracker request timed out')
175
+ }, 15000)
176
177
if (opts.event !== EVENTS.stopped) {
178
// if we're sending a stopped message, we don't really care if it arrives, so don't
0 commit comments