Skip to content

Wrong return value of 'onion_websocket_write' #275

Description

@YggdrasiI

Hello Mr Moreno,

the function 'onion_websocket_write' does not return the correct length information in all cases. If the internal writing is split in multiple parts, only the length of the last
token is propagated.

return (*lpwriter) (ws->req, tout, len & 1023);

Fix:

return (ret + (*lpwriter) (ws->req, tout, len & 1023));

Regards Olaf Schulz

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