Skip to content

The trailing ";" may not be removed from the buffer in handleData (formerly receiveBytes) #72

@Poikilos

Description

@Poikilos

I don't quite understand why handleData (formerly receiveBytes):

self.inboundBuffer = self.inboundBuffer[lastByte:]

Is this is type-o? Maybe it should be self.inboundBuffer = self.inboundBuffer[lastByte+1:] if lastByte is at ";"

I'm not sure because for some reason the loop starts at 2 (for offset in range(2, 9+1):), almost like it assumes the buffer always starts with ";" which seems fragile and possibly will lose the first packet in a session.

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