Skip to content

Commit

Permalink
expanding accept timeout (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj authored Apr 17, 2024
1 parent f15f0d6 commit 2077f79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ extension NWParameters {
authenticationDispatchData as __DispatchData,
stringToDispatchData("MeetingNotes")! as __DispatchData
)

// DEBUG NOTE: maybe worth looking into
// RFC 4785 - Pre-Shared Key (PSK) Ciphersuites with NULL Encryption
// public var TLS_PSK_WITH_NULL_SHA: SSLCipherSuite { get } as an alternative

/* RFC 5487 - PSK with SHA-256/384 and AES GCM */
// Forcing non-standard cipher suite value to UInt16 because for
// whatever reason, it can get returned as UInt32 - such as in
// GitHub actions CI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public actor PeerToPeerConnection {
public init(
connection: NWConnection,
receiveTimeout: ContinuousClock.Instant.Duration = .seconds(3.5),
readyTimeout: ContinuousClock.Instant.Duration = .seconds(1),
readyTimeout: ContinuousClock.Instant.Duration = .seconds(5),
readyCheckDelay: ContinuousClock.Instant.Duration = .milliseconds(50)
) {
self.readyTimeout = readyTimeout
Expand Down

0 comments on commit 2077f79

Please # to comment.