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
{{ message }}
Repository navigation
Commit 5c87457
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apple/runner/RUNNER_PROTOCOL.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,13 @@ The Apple runner speaks a small internal HTTP+JSON protocol between the TypeScri
11
11
- HTTP/1.1 connections persist by default. `Connection: close` ends them after the response.
12
12
- HTTP/1.0 connections persist only when the request includes `Connection: keep-alive`.
13
13
- Pipelined requests run in order. Each request repeats token, route, and length validation.
14
-
- Shutdown and framing or authentication refusals close the connection. Shutdown also closes other open connections.
14
+
- Shutdown and framing or authentication refusals close the connection. Shutdown closes other open connections after all coalesced shutdown responses finish sending.
15
15
16
16
The daemon sends to `http://127.0.0.1:<port>/command` for simulator and macOS runners. A physical device is reached over usbmux when cabled, otherwise at its CoreDevice tunnel address; it is never dialed at this Mac's loopback.
17
17
18
+
Loopback and CoreDevice tunnel requests use the global `fetch` connection pool to reuse TCP
19
+
connections. The usbmux transport sends `Connection: close` and opens a connection per request.
20
+
18
21
### Listener binding
19
22
20
23
Simulators and macOS bind `127.0.0.1` only. A physical device listens on every interface: a cabled
0 commit comments