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 |
#595118
external
|
ERP5.CodingStyleTest-Master |
01:04:47
|
||||||
passed |
#595045
external
|
ERP5.CodingStyleTest-TestRunner2 |
00:35:39
|
||||||
passed |
#595160
external
|
ERP5.PerformanceTest-Master |
00:26:54
|
||||||
failed |
#595135
external
|
ERP5.UnitTest-Master |
01:35:54
|
||||||
failed |
#595044
external
|
ERP5.UnitTest-TestRunner2 |
01:47:46
|
||||||
running |
#595136
external
|
ERP5.UnitTest-Zope2 |
13102:33:37 |
||||||
passed |
#595046
external
|
ERP5.UnitTest-Zope2-ForTestRunner2 |
01:21:54
|
||||||
passed |
#595127
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:12:41
|
||||||
passed |
#595149
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:33
|
||||||
passed |
#595138
external
|
Wendelin.UnitTest-Master |
00:33:56
|
||||||