From: Bigmac Turdsplash Date: 2012-03-23T09:54:13+09:00 Subject: Re: simple http proxy, TCPServer<->TCPSocket-> Robert Klemme wrote in post #1052606: > Bigmac Turdsplash wrote in post #1052529: >> this thing kind of works... i have connected my webbrowser to 8181 for >> testing... im looking for help, everything i try produce the same >> resaults... i dont really want to bother with event machines > > And what exactly do you need help with? > > Cheers > > robert so, my code has a few problems, the web browser will only load a few pages and the connection will always stay open as if the browser is waiting for more data... i was thinking maybe i need 2 or 3 threads to handle both sides... Thread.start{ receive_get from webbrowser }#step one Thread.start{ send_get to webserver } #step two Thread.start{ send_response to webbrowser }#step three if i understand, the first step i need to gather a host: field then establish a connection to the host web server and pass the response back to the web client... i think my loops are wrong... -- Posted via http://www.ruby-forum.com/.