coleman3616 / coleman3616/HTTP_Server

Fragmented Requests

Open
#9 0 comments 0 reactions 1 assignee Claimed by @coleman3616 View on GitHub
HTTP task
Dominant language
HTML
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Some clients do not transmit the entire request in one go, which results in the server responding to a partial request.
Instead of
```
Client Server
Header+Body -----------> Analyse
<----------- Respond
```
we get
```
Header -----------> Analyse
<----------- Error
Body -----------> Analyse
<---------- Error
```
a) Two responses are made to a single message
b) The message is analysed incorrectly.

I haven't seen a fragmented header, or a fragmented body, but I have no reason to believe that is impossible. The server needs to accept a request in dribs and drabs and (perhaps) time-out a partially received message after a suitable period.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.