Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D debexpo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mentors.debian.net
  • debexpo
  • Merge requests
  • !113

Add a timeout for blocking operation on socker for the worker

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Baptiste Beauplat requested to merge lyknode/debexpo:fix/importer-hangs into live Mar 07, 2020
  • Overview 0
  • Commits 6
  • Pipelines 1
  • Changes 6

This MR adds a global timeout on blocking socket operation in the worker.

The following has been tested and validated locally:

  • Full offline import
  • Full offline removal of old uploads
  • Import with a timeout from:
    • ftp-master api
    • debian archive
    • tracker.d.o
    • bugs.d.o
  • Removal of old uploads with a timeout from:
    • gmane NNTP server

How did I test the timeout?

With a nc -l -k -p 4242 and settings all required url to fetch from localhost:4242. Not writing anything on nc simulates a read timeout.

Closes #94 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/importer-hangs