Skip to content

read_stream() - message longer than RECV_BUFFER raises MLLPException('buffer not terminated...') #17

@massimiliano-della-rovere

Description

The read_stream function reads just one chunk of data that must be at most RECV_BUFFER bytes long.

This breaks when a message is longer than RECV_BUFFER.
The fix is keeping on executing

data = stream.read(RECV_BUFFER)

and break if len(data) < RECV_BUFFER.

I will post a patch proposal soon.

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