Skip to content

Commit

Permalink
Merge pull request #6610 from mascguy/mascguy-errSSLNetworkTimeout
Browse files Browse the repository at this point in the history
stransport: macOS: replace errSSLNetworkTimeout, with hard-coded value
  • Loading branch information
ethomson committed Jul 27, 2023
2 parents 42b5d85 + 3e15292 commit 593ff41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libgit2/streams/stransport.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static OSStatus write_cb(SSLConnectionRef conn, const void *data, size_t *len)
if (ret < 0) {
st->error = ret;
return (ret == GIT_TIMEOUT) ?
errSSLNetworkTimeout :
-9853 /* errSSLNetworkTimeout */:
-36 /* ioErr */;
}

Expand Down Expand Up @@ -214,7 +214,7 @@ static OSStatus read_cb(SSLConnectionRef conn, void *data, size_t *len)
if (ret < 0) {
st->error = ret;
error = (ret == GIT_TIMEOUT) ?
errSSLNetworkTimeout :
-9853 /* errSSLNetworkTimeout */:
-36 /* ioErr */;
break;
} else if (ret == 0) {
Expand Down

0 comments on commit 593ff41

Please sign in to comment.