Skip to content

Commit 7f9ba1d

Browse files
committed
docs: add a comment
1 parent 1fee7fb commit 7f9ba1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/build/src/homebrew/generate-formula.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import * as semver from 'semver';
22
import type { GithubRepo } from '@mongodb-js/devtools-github-repo';
33

4+
/**
5+
* When sending requests via Octokit, a situation can arise where the server closes the connection,
6+
* but the client still believes it’s open and attempts to write to it,
7+
* what leads to receiving an EPIPE error from the OS, indicating the connection has already been closed.
8+
* In such cases, retrying the request can help establish a new, functional connection.
9+
*/
410
async function getFileWithRetry(
511
homebrewCore: GithubRepo,
612
remainingRetries = 3

0 commit comments

Comments
 (0)