- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit41aac14
committed
oauth: Track total call count during a client flow
Tracking down the bugs that led to the addition of comb_multiplexer()and drain_timer_events() was difficult, because an inefficient flow isnot visibly different from one that is working properly. To helpmaintainers notice when something has gone wrong, track the number ofcalls into the flow as part of debug mode, and print the total when theflow finishes.A new test makes sure the total count is less than 100. (We expectsomething on the order of 10.) This isn't foolproof, but it is able tocatch several regressions in the logic of the prior two commits, andfuture work to add TLS support to the oauth_validator test server shouldstrengthen it as well.Backpatch-through: 18Discussion:https://postgr.es/m/CAOYmi+nDZxJHaWj9_jRSyf8uMToCADAmOfJEggsKW-kY7aUwHA@mail.gmail.com1 parente507e08 commit41aac14
File tree
2 files changed
+52
-1
lines changed- src
- interfaces/libpq-oauth
- test/modules/oauth_validator/t
2 files changed
+52
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
3021 | 3022 | | |
3022 | 3023 | | |
3023 | 3024 | | |
| 3025 | + | |
| 3026 | + | |
3024 | 3027 | | |
3025 | 3028 | | |
3026 | 3029 | | |
| |||
3049 | 3052 | | |
3050 | 3053 | | |
3051 | 3054 | | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
3052 | 3074 | | |
3053 | 3075 | | |
3054 | 3076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
421 | 450 | | |
422 | 451 | | |
423 | 452 | | |
| |||
428 | 457 | | |
429 | 458 | | |
430 | 459 | | |
431 | | - | |
| 460 | + | |
432 | 461 | | |
433 | 462 | | |
434 | 463 | | |
| |||
0 commit comments
Comments
(0)