• Using linked lists of buffers for HTTP/2 I/O

    From Ar Rakin@rakinar2@onesoftnet.eu.org to comp.lang.c on Wed Jul 30 22:28:51 2025
    From Newsgroup: comp.lang.c


    Hello there!

    I've been working on my new HTTP server project - freehttpd. I have implemented the basics of HTTP/1.x protocol family. Now, I want to
    implement HTTP/2. I used a similar idea that is commonly seen in
    servers like Apache or Nginx, they use a linked list of variable-sized
    buffers to store incoming/outgoing data and write them as needed. I implemented the same thing. However, since HTTP/2 is a binary protocol,
    I was wondering whether should I do something else - is there a better
    way to do I/O than using linked list of buffers, for HTTP/2?

    Would be glad to see your suggestions and ideas.
    --
    Rakin
    --- Synchronet 3.21a-Linux NewsLink 1.2