78484f4 rpmbuild, common: always set 'requests.get()' timeout

7 files Authored by praiskup 2 years ago, Committed by praiskup 2 years ago,
    rpmbuild, common: always set 'requests.get()' timeout
    
    From https://docs.python-requests.org/en/latest/user/quickstart/#timeouts
    
    | You can tell Requests to stop waiting for a response after a given
    | number of seconds with the timeout parameter. Nearly all production
    | code should use this parameter in nearly all requests. Failure to do
    | so can cause your program to hang indefinitely.
    
    We already use the 'stream=True' additional argument in get() methods,
    so I rather added the **kwargs boilerplate to all of the SafeRequest
    methods.
    
    Fixes: rhbz#2016861
    
        
  • Zuul
    success
    Jobs result is success
    2 years ago
  • Copr build
    success (100%)
    #2916235
    2 years ago
  • Copr build
    success (100%)
    #2916236
    2 years ago
  • Copr build
    success (100%)
    #2916238
    2 years ago
  • Copr build
    success (100%)
    #2916239
    2 years ago
file modified
+20 -17
file modified
+1 -1
file modified
+2 -2