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

BUG report #18

Open
PudgeMa opened this issue Nov 23, 2017 · 0 comments
Open

BUG report #18

PudgeMa opened this issue Nov 23, 2017 · 0 comments

Comments

@PudgeMa
Copy link

PudgeMa commented Nov 23, 2017

http_process.c
http_connection * http_process_find_connection(void *arg)

this function find http_connection by arg that comes from espconn_*_callback.
it works by comparing arg with http_connection.espConnection in connection_poll.
However, in esp8266_non_os_sdk_api_reference_cn.pdf

Parameter arg of callback is the pointer corresponding structure espconn. This pointer may be different
in different callbacks, please do not use this pointer directly to distinguish one from another in multiple
connections. Use remote_ip and remote_port in espconn instead.

For example, parameter arg in espconn_disconnect_callback and espconn_sent_callback
is differrent.

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