Skip to content

Conversation

winlinvip
Copy link
Member

@winlinvip winlinvip commented Sep 3, 2025

This PR modernizes SRS's HTTP handling by upgrading from the legacy http-parser library to the more performant and actively maintained llhttp library.

  • Replace http-parser with llhttp: Migrated from the deprecated http-parser to llhttp for better performance and maintenance
  • API compatibility: Updated all HTTP parsing logic to use llhttp APIs while maintaining backward compatibility
  • Simplified URL parsing: Replaced complex http-parser URL parsing with custom simple parser implementation
    Enhanced error handling: Improved error reporting with llhttp's better error context and positioning

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Sep 3, 2025
@winlinvip winlinvip changed the title Refine/http Upgrade HTTP parser from http-parser to llhttp Sep 3, 2025
@winlinvip winlinvip changed the title Upgrade HTTP parser from http-parser to llhttp Upgrade HTTP parser from http-parser to llhttp. v7.0.77 Sep 3, 2025
@winlinvip winlinvip added the RefinedByAI Refined by AI/GPT. label Sep 3, 2025
@winlinvip winlinvip merged commit 6720e96 into ossrs:develop Sep 4, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English. RefinedByAI Refined by AI/GPT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant