Skip to content
Snippets Groups Projects
Commit fcfe38dc authored by Erik Hedenström's avatar Erik Hedenström
Browse files

Streaming kind of working

parent 96c641ec
Branches
No related tags found
No related merge requests found
......@@ -101,18 +101,18 @@ func (proxy *Proxy) handleRequest(conn net.Conn) {
}
proxy.log.Debugf("-> %s", msg)
c := 0
for c < 2000 {
for {
t, p, err := ws.ReadMessage()
if err != nil {
log.Warn(err)
return
}
n, err := conn.Write(p)
if err != nil {
log.Warn(err)
return
}
proxy.log.Debugf("<- %d %d %v", t, n, p)
c++
proxy.log.Debugf("<- %d %d %d", t, n, len(p))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment