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
I am using the CLI via gRPC from a JS-based application. My client code performs mainly the following requests:
PlatformListReq,
PlatformSearchReq, and
BoardListReq.
Due to the async nature of the client, I am working on, and these requests might run in parallel which from time to time results in a panic error from the discovery code. After the failure, the CLI crashes, and the daemon process terminates.
After making my client code a bit more relaxed, the error happens less frequently, but the daemon produces the following error:
Error getting port list from discovery /Users/akos.kitta/xxx/data/packages/builtin/tools/serial-discovery/0.5.0/serial-discovery: sending LIST command to discovery: write |1: file already closed
Error getting port list from discovery /Users/akos.kitta/xxx/data/packages/builtin/tools/serial-discovery/0.5.0/serial-discovery: sending LIST command to discovery: write |1: file already closed
This could lead to unpredictable behavior.
Question: is the CLI capable of processing concurrent requests via gRPC?
Expected behavior
The CLI does not crash when it has to process multiple gRPC requests concurrently.
Environment
CLI version (output of arduino-cli version):
Go version (if building from sources):
OS version: macOS 10.14.4 (18E226)
Additional context
The text was updated successfully, but these errors were encountered:
Bug Report
Current behavior
I am using the CLI via gRPC from a JS-based application. My client code performs mainly the following requests:
PlatformListReq
,PlatformSearchReq
, andBoardListReq
.Due to the async nature of the client, I am working on, and these requests might run in parallel which from time to time results in a panic error from the discovery code. After the failure, the CLI crashes, and the daemon process terminates.
After making my client code a bit more relaxed, the error happens less frequently, but the daemon produces the following error:
This could lead to unpredictable behavior.
Question: is the CLI capable of processing concurrent requests via gRPC?
Expected behavior
The CLI does not crash when it has to process multiple gRPC requests concurrently.
Environment
arduino-cli version
):macOS 10.14.4 (18E226)
Additional context
The text was updated successfully, but these errors were encountered: