Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

EnsureBufferLength infinite wait #36

@mappendino

Description

@mappendino

I found that when peeking a client hello (using PeekClientHello) there are some cases when EnsureBufferLenght keeps waiting for more data when there isn't any more available.
I have a client that was sending a TLS 1.0 client hello without extensions and when PeekClientHello called ReadExtensions it would wait until the client connection timed out.

With a client that sends the extensions PeekClientHello is expecting this issue can be replicated by adding an extra EnsureBufferLenght check right after the call to ReadExtensions. The expected behavior is for the check to fail because there's no more data available but instead it will keep waiting until the connection times out.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions