def setUploadDuration(infoHash, seconds)
      torrentData = @torrentData[infoHash]
      if ! torrentData
        @logger.warn "Asked to set upload duration for a non-existent torrent #{QuartzTorrent.bytesToHex(infoHash)}"
        return
      end

      torrentData.uploadDuration = seconds
    end
def setUploadDuration(infoHash, seconds)
      torrentData = @torrentData[infoHash]
      if ! torrentData
        @logger.warn "Asked to set upload duration for a non-existent torrent #{QuartzTorrent.bytesToHex(infoHash)}"
        return
      end

      torrentData.uploadDuration = seconds
    end
Set the maximum amount of time (in seconds) that a torrent can be in the upload-only state before
 it is paused. Pass nil to disable.