reverse proxy
using select with loop