oauth_google_login: apply a 10 seconds timeout when connecting to google server
In case of network problems, the http requests made to google during login may take too long and cause global unavailability of the ERP5 instance. Today we saw in long request logs: 2023-05-29 07:10:35,662 - Thread 140596157511424: Started on 1685336511.6; Running for 524.1 secs; Same. oauth2client does not expose an API to set a timeout, but it allows passing a custom http instance where we can set a timeout.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#595534
external
|
ERP5.CodingStyleTest-TestRunner2 |
01:03:53
|
||||||
failed |
#595599
external
|
ERP5.UnitTest-TestRunner2 |
02:17:55
|
||||||
passed |
#595598
external
|
ERP5.UnitTest-Zope2-ForTestRunner2 |
02:16:16
|
||||||
passed |
#595470
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:10:33
|
||||||
failed |
#595481
external
retried
|
ERP5.UnitTest-TestRunner2 |
03:45:38
|
||||||
failed |
#595472
external
retried
|
ERP5.UnitTest-Zope2-ForTestRunner2 |
03:45:37
|
||||||