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

Socket API errors are wrong #11

Open
tabascoeye opened this issue Jul 8, 2014 · 1 comment
Open

Socket API errors are wrong #11

tabascoeye opened this issue Jul 8, 2014 · 1 comment

Comments

@tabascoeye
Copy link
Owner

the socket API yields wrong Error codes for connect().
The usage of EALREADY and EISCONN are not handled as expected by the BSD socket API.

  • in err.h, introduce new LWIP internal error code ERR_ALREADY
  • in sockets.c add mapping of EISCONN to the err_to_errno_table array
  • in api_msg in function do_connect() give out correct errors ERR_ISCONN and ERR_ALREADY in the correct cases
@tabascoeye
Copy link
Owner Author

see also in LwIP bugtracker on savannah: http://savannah.nongnu.org/bugs/?38853

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