bareos: master 67a87372

Author Committer Branch Timestamp Parent
bruno-at-bareos Bareos Bot master 2023-12-27 15:06 master 3feab89f Pending
Changeset python-bareos: use socket.create_connection()

- remove hard-coded AF_INET in socket creation.
- replace socket.connect() by a higher-level function
  socket.create_connection() allowing AF_INET6 familly connection.
- set a default of 30 to self.timeout, simplify code to remove
  `if self.timeout ...`

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
mod - python-bareos/bareos/bsock/lowlevel.py Diff File