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

HTTPS Stream: first character is missing (HTTP Method) #2

Open
@kbalint

Description

@kbalint

Hello, I've found a bug in the HttpServer, which only affects the usage when HTTPS mode is enabled.
If a HTTPS connection is created, in HttpContext.cs -s OnReceive function in the first call only the first byte of the stream arrives (for example: 'G' in 'GET /test HTTP/1.1').

Then it will fail to copy this value to _buffer (i don't really understand that part of the code and the recursion), so in the upper levels all Method names are truncated: 'ET', 'PTIONS' etc. There was (and should have been) a check for Method value in HttpParser.cs but it has been removed.

In the original version there was a comment about a not traced bug in this function, I think this is it. I could no debug it further what is the root cause of this problem. Do you have any hints how to continue with the debug? Thanks

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