Why is “fork” needed by socat when connecting to a web server?
问题 I am trying to understand tcp connections between a browser and a web server. I have a web server running on my local machine, and can browse to it just fine, as expected, using localhost:3000 or 127.0.0.1:3000. (I am running "rails s"and WEBrick.) I wanted to put a software intermediary between the browser and the web server, and so began experimenting with socat. The following works just fine: socat TCP-LISTEN:8080,fork TCP:localhost:3000 I can browse to localhost:8080 and things work as