Skip to content

BUG report #18

@PudgeMa

Description

@PudgeMa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions