indygreg/apple-platform-rs

Notary poll interval

Open

#74 opened on Apr 20, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (88 forks)github user discovery
apple-codesignenhancementgood first issue

Repository metrics

Stars
 (819 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/indygreg/apple-platform-rs/blob/d5e608a0391a4b453b904f8aa5862b2b5925afef/apple-codesign/src/notarization.rs#L152

I'm seeing a lot of "Connection reset by peer" errors, and wanted to extend the poll interval, but it looks like it's hard coded.

Some options here are:

  1. Ability to pass it in from cli
  2. Env variable (although I don't think rcodesign uses any env variables for config)
  3. Dynamic regulate timeout (increase every call by X seconds, up to ~30 seconds per call)

Contributor guide