Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages appearing when using tcpout connection string #48

Open
dwaiting opened this issue Feb 12, 2022 · 5 comments
Open

Error messages appearing when using tcpout connection string #48

dwaiting opened this issue Feb 12, 2022 · 5 comments

Comments

@dwaiting
Copy link

Getting lots of error messages when using a tcpout connection:

$ ./mavlink2rest-x86_64-unknown-linux-musl -c tcpout:127.0.0.1:14550
[2022-02-12T21:58:09Z ERROR mavlink2rest::mavlink_vehicle] Recv error: Io(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
[2022-02-12T21:58:10Z ERROR mavlink2rest::mavlink_vehicle] Recv error: Io(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
[2022-02-12T21:58:10Z ERROR mavlink2rest::mavlink_vehicle] Recv error: Io(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
[2022-02-12T21:58:10Z ERROR mavlink2rest::mavlink_vehicle] Recv error: Io(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })

I don't get these error messages when using UDP or tcpin.

The application still appears to be working despite the error messages.

@patrickelectric
Copy link
Member

I have never seen this error, will try to replicate it

@patrickelectric
Copy link
Member

I saw it now, will check it asap

@dwaiting
Copy link
Author

I believe I've found the source of this error message in https://github.com/mavlink/rust-mavlink/blob/master/src/connection/tcp.rs#L33

socket.set_read_timeout(Some(Duration::from_millis(100)))?;

If I comment out the line above, the error message goes away and mavlink2rest still seems to work ok. Do you foresee any unintended consequences from this approach?

@khancyr
Copy link
Contributor

khancyr commented Aug 25, 2023

I can confirm it happens too.
Using WSL2 ubuntu22.04 on a fresh build
I didn't had it yesterday with the same build I think, but I change the SITL build in the mean time so no idea what can cause this for now.

@ccskevin32
Copy link

Experienced this as well and reported as issue #102. Noticed this issue for what is probably the same thing when spending a little more time looking at the project. Running raspbian on a pi 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants