FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Tags · cortexm/uhttp-server · GitHub

Tags: cortexm/uhttp-server

Tags

v2.6.0

Toggle v2.6.0's commit message
harden against DoS crashes and raise concurrency defaults

Security/robustness fixes for running on public networks:
- reject deeply nested JSON with 400 instead of crashing the event loop (json.loads raises RecursionError, a RuntimeError subclass, which was neither ValueError nor ClientError and propagated out of wait())
- close the WebSocket on send-buffer overflow during auto-pong instead of letting OSError escape the loop (ping flood / dead consumer)
- tolerate custom/unknown response status codes via STATUS_CODES.get() instead of raising KeyError
Defaults tuned for public-facing use:
- MAX_WAITING_CLIENTS 5 -> 32 (browsers open ~6 connections each)
- listen backlog 2 -> 8
Docs:
- sync README kwargs defaults with code (keep_alive_timeout 30->15, max_waiting_clients, add request_timeout/file_chunk_size/listen)
- warn about path traversal in respond_file (README + docstring)
- add TODO: distinguish waiting vs active connections in _accept eviction
Add tests/test_dos_hardening.py covering the three crash fixes.

v2.5.2

Toggle v2.5.2's commit message
wipe micropython device before tests

v2.5.1

Toggle v2.5.1's commit message
make slow-client cap test deterministic via monkey-patched flush

v2.5.0

Toggle v2.5.0's commit message
ndjson support

v2.4.1

Toggle v2.4.1's commit message
percent_encoder bugfix

v2.4.0

Toggle v2.4.0's commit message
CI: paralelize tests between platforms

v2.3.5

Toggle v2.3.5's commit message
parse_cookies function + bugfix

v2.3.4

Toggle v2.3.4's commit message
added status 409

v2.3.3

Toggle v2.3.3's commit message
increased socket timeout in keepalive tests

v2.3.2

Toggle v2.3.2's commit message
fixed windows tests


Back | FazBrowse Home | New Git URL