You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ios/rsd.go
+16
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,16 @@ import (
6
6
"io"
7
7
"net"
8
8
"strconv"
9
+
"sync"
9
10
10
11
"github.com/danielpaulus/go-ios/ios/http"
11
12
"github.com/danielpaulus/go-ios/ios/xpc"
12
13
log "github.com/sirupsen/logrus"
13
14
)
14
15
16
+
// _requestsMap stores a mutex for every request attempt to the trio formed by address, port, and TUN port. This allows to make sure that no more than one request is made at a time to a given trio, since doing so can lead to stuck requests and, therefore, stuck programs and/or goroutine leaks.
17
+
var_requestsMap= sync.Map{}
18
+
15
19
// RsdPortProvider is an interface to get a port for a service, or a service for a port from the Remote Service Discovery on the device.
0 commit comments