Skip to content

Add packet size limitation before handshake #1089

@YangKeao

Description

@YangKeao

Development Task

As the tiproxy is exposed to the internet in some cases, anyone with bad ideas may send extremely huge packets to make TiProxy OOM. To make it more difficult to attack the tiproxy server, we'd better to add a packet size limitation before the handshake runs successfully.

I'll modify handShakeFirstTime, and make sure it has size limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions