How to catch bugs in robots

Author: sword10086, Created: 2017-12-16 17:19:33, Updated:

For example: error GetDepth: timeout I want to capture the error in the robot and then do some processing. Can you also tell us about the handling of errors in the GetDepth interface? GetDepth: timeout error of one thread blocks other threads in case of multiple threads concurrently


More

sword10086How else to set the timeout value of the interface? And the HTTP request for GetDepth shouldn't be written as unclogged, right?

sword10086If the websocket can't receive the data, it gets blocked.

The Little DreamHey, did you switch the websocket?

sword10086Solved; is okx's socket interface not good

The Little DreamNo, not at all.

sword10086Isn't the Go function implemented by native multi-threaded?

The Little DreamThe bandwidth effect should not be too great, native multi-threads in python are not possible, concurrent distribution must be done using the Go function, see the API documentation for more details.

sword10086I saw that it was supposed to be Ali Yun's bandwidth that wasn't enough.

The Little DreamIn BotVS concurrency requires the use of the exchange.Go function to be implemented, without the native concurrency at the programming language level. The Go function creates several threads to complete the request. In addition, the program architecture is round-trip, and all logic is streamlined. Blocking processing. ### Did you say multi-threaded concurrency is implemented using the Go function? or is it native multi-threaded using Python?