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

Get Error in welle.io #22

Open
MkMunich opened this issue Sep 1, 2018 · 0 comments
Open

Get Error in welle.io #22

MkMunich opened this issue Sep 1, 2018 · 0 comments

Comments

@MkMunich
Copy link

MkMunich commented Sep 1, 2018

Hi, I'm using welle.io on Android and after some time I get this error message:
"SdrTcp: serveClient cannot send to client"
This is issued in sdrtcp.c at line 148. To me it looks like that the return code of select() in line 139 is not handled correctly. According the manual pages the select function returns the total number of socket handles that are ready and contained in the fd_set structures, zero if the time limit expired, or SOCKET_ERROR (-1) if an error occurred. If the return value is SOCKET_ERROR, WSAGetLastError (errno) can be used to retrieve a specific error code....

Shouldn't line 141 the be the following?
if(r > 0 && obj->state == STAGE_CLIENT_SERVING) {....
and the if-block in line 147-150 inside of the previous if(), so before line 145?

Please have a look.

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

1 participant