Skip to content

Why should websocket be destroyed when getting LWS_CALLBACK_CLIENT_WRITEABLE? #5

@klauski

Description

@klauski

When socket become writeable, runtime error rises because web client go to be destroyed..

The related code is in scclient.cpp,
if (writeable_flag)
destroy_flag = 1; <= raise problem
}
break;
case LWS_CALLBACK_CLIENT_WRITEABLE :{
// printf(KYEL"[Main Service] On writeable is called. send byebye message\n"RESET_);
websocket_write_back(wsi, (char *)"Byebye! See you later", -1);
writeable_flag = 1;

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