Skip to content

Attic doesn't handle connections issues when using remote repo #130

@thiagoc

Description

@thiagoc

This is how I'm testing:

  • Run attic create ... in one terminal
  • Wait some minutes
  • Run conntrack -D -p tcp --dport 22 in another terminal

Attic is still running (??) after some minutes. Hit CTRL+C, it display attic: Error: Keyboard interrupt but doesn't stop after some more minutes. Hit CTRL+C again and:

Exception ignored in: <bound method RemoteRepository.__del__ of <attic.remote.RemoteRepository object at 0x7f6d230fecc0>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 124, in __del__
    self.close()
  File "/usr/local/lib/python3.4/site-packages/attic/remote.py", line 243, in close
    self.p.wait()
  File "/usr/local/lib/python3.4/subprocess.py", line 1565, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/local/lib/python3.4/subprocess.py", line 1513, in _try_wait
    (pid, sts) = _eintr_retry_call(os.waitpid, self.pid, wait_flags)
  File "/usr/local/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions