Install_app with 2 minute timeout (iOS)?

We’re using selenium grid, and real iOS phones (multiple connected to a machine). As we have multiple different branches that can be put on the phone, we don’t use the app capability for our app, and instead on iOS start up the Settings app, and uninstall all the versions of the app on the phone. We then use the install_app endpoint to install the app. The issue we’re running into is that occasionally the install_app takes a while. When this happens, occasionally after 2 minutes we get the “return with no data” output in the appium.log for the install, then something retries (I’m assuming the grid, but I’m unsure at this point still). The grid console doesn’t show any errors (I tried setting the browserTimeout really low to test, and we get a nice ugly stacktrace in the output), and all of our other timeouts are set fairly high (with nothing I can see set to 2 minutes). Anyone have any ideas here?

2020-01-27 17:09:09:380 - [HTTP] --> POST /wd/hub/session/b37198a4-aae2-4df1-b91b-cd7afd489384/appium/device/install_app

2020-01-27 17:11:09:385 - [HTTP] <-- POST /wd/hub/session/b37198a4-aae2-4df1-b91b-cd7afd489384/appium/device/install_app - - ms - -

2020-01-27 17:11:09:387 - [HTTP] --> POST /wd/hub/session/b37198a4-aae2-4df1-b91b-cd7afd489384/appium/device/install_app

2020-01-27 17:13:42:410 - [HTTP] <-- POST /wd/hub/session/b37198a4-aae2-4df1-b91b-cd7afd489384/appium/device/install_app 200 153018 ms - 14

2020-01-27 17:13:42:763 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:15:42:767 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app - - ms - -

2020-01-27 17:15:42:773 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:17:42:780 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app - - ms - -

2020-01-27 17:17:42:784 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:19:42:788 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app - - ms - -

2020-01-27 17:19:42:793 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:22:53:587 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app 200 190788 ms - 14

2020-01-27 17:22:53:597 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:24:53:600 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app - - ms - -

2020-01-27 17:24:53:605 - [HTTP] --> POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app

2020-01-27 17:25:28:603 - [HTTP] <-- POST /wd/hub/session/addc8ddd-6cfd-4908-92db-9e0400e949c9/appium/device/install_app 500 34996 ms - 623

2020-01-27 17:56:12:214 - [HTTP] --> POST /wd/hub/session/e3316cbe-b8ea-47b5-a922-31f0240ee28a/appium/device/install_app

2020-01-27 17:57:44:979 - [HTTP] <-- POST /wd/hub/session/e3316cbe-b8ea-47b5-a922-31f0240ee28a/appium/device/install_app 200 92762 ms - 14

NOTE: found out the error is not selenium grid/hub side. That server is seeing an unexpected end of stream, so it’s being closed by appium-server on the mac mini it’s running on