forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc301a0a
committed
Work around OAuth/EVFILT_TIMER quirk on NetBSD.
NetBSD's EVFILT_TIMER doesn't like zero timeouts, as introduced bycommitb3f0be7. Steal the workaround from the same problem on Linuxfrom a few lines up: round zero up to one. Do this only for NetBSD, asthe other systems with the kevent() API accept zero and shouldn't haveto insert a small bogus wait.Future improvement ideas: * when NetBSD < 10 falls out of support, we could try NODE_ABSTIME for the "fire now" meaning if timeout == 0 * when libcurl tells us to start a 0ms timer and call it back, we could figure out how to handle that more directly without involving the kernel (the current architecture doesn't make that straightforward)Failures with EINVAL errors could be seen on the new optional NetBSD CItask that we're trying to keep green as a candidate for inclusion asdefault-enabled CI task. The NetBSD build farm animals aren't testingOAuth yet, so no breakage there.Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>Discussion:https://postgr.es/m/CA%2BhUKGJ%2BWyJ26QGvO_nkgvbxgw%2B03U4EQ4Hxw%2BQBft6Np%2BXW7w%40mail.gmail.com1 parent8a1012b commitc301a0a
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1363 | 1363 |
| |
1364 | 1364 |
| |
1365 | 1365 |
| |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1366 | 1376 |
| |
1367 | 1377 |
| |
1368 | 1378 |
| |
|
0 commit comments
Comments
(0)