Socket timeout quick consecutive calls

Greetings again!

I have to wait 2-3 seconds between each call to the driver otherwise I get socket timeout errors. Is there a way around this? Additionally, is it only me that is experiencing this?

This is the error I get:

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
    at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:274:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at XCUITestDriver.proxyCommand (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:96:12)
    at XCUITestDriver.mobileQueryAppState (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/app-management.js:83:10)
    at XCUITestDriver.queryAppState (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/app-management.js:106:10)

Looking forward to your response!
Kind regards,
Simon

made an issue with server logs here https://github.com/appium/appium/issues/17467

Wow. Never seen Apple ask for a bug report in a log like this!

2022-09-09 23:27:43:930 [Xcode] 2022-09-10 01:27:43.929 xcodebuild[93003:82073908] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
2022-09-09 23:27:43:930 [Xcode] Details: (null) deviceType from 62adb18587ca78a723cc68b82805547833e3b8b1 was NULL when -platform called.
2022-09-09 23:27:43:930 [Xcode] Object: <DTDKMobileDeviceToken: 0x7f9fa51ce8f0>
2022-09-09 23:27:43:931 [Xcode] Method: -platform
2022-09-09 23:27:43:931 [Xcode] Thread: <NSThread: 0x600000efdbc0>{number = 2, name = (null)}
2022-09-09 23:27:43:931 [Xcode] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2022-09-09 23:27:43:932 [Xcode]

try look at this: https://github.com/appium/appium/issues/14495#issuecomment-651673758

issue is fixed by updating to appium2