in ,

TimeToogo / ff-proxy, Hacker News

TimeToogo / ff-proxy, Hacker News
                    

        

FF is a proxy server which enables you to fire and forget HTTP requests. That is, sending a HTTP request to a remote server, without waiting for a response or even the network latency required to establish a connection to that server.

Additionally, FF provides the ability to protect sensitive payloads by encrypting the data in transit between both the client and upstream servers.

Disclaimer: This project was merely a learning exercise as well as my first sizeable project delving into C or even systems programming as a whole. If you somehow manage to find a use-case, please do not use this in production.

In summary, FF proxy server listens for HTTP requests over UDP and forwards them to their destination server over TCP for processing.

For the readers not familiar with the protocols discussed here, read on. HTTP requests and responses are almost always transmitted over a TCP connection . The TCP protocol ensures that data is exchanged accurate and reliably. In doing so, much of the communication between a client and server is for the purpose of verifying the has been data exchanged correctly rather than performing the data exchange itself.

To establish a TCP connection, a “handshake” must be completed between the client and the server using an exchange of SYN and ACK packets.

In ELI5 terms:

  • the server responds with a “hi there, i received your number 01575879, my random number is 5130648
  • What do you think?

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    GIPHY App Key not set. Please check settings

    Sea of ​​Thieves on Steam Proves Microsoft Store Is a Complete Joke, Crypto Coins News

    Sea of ​​Thieves on Steam Proves Microsoft Store Is a Complete Joke, Crypto Coins News

    Jeff Bezos is donating $ 100 million to food banks during the coronavirus crisis, Recode

    Jeff Bezos is donating $ 100 million to food banks during the coronavirus crisis, Recode