nauphone / ServerAccess

A tool to provide easy and seamless access to multiple servers via SSH
GNU General Public License v2.0
18 stars 3 forks source link

HTTP proxy cannot deal with multiple target hosts #40

Closed ahitrin closed 11 years ago

ahitrin commented 11 years ago

Steps to reproduce:

Result: exception

18-03-2013 17:26:07,850 [Thread-42] DEBUG ru.naumen.servacc.HTTPProxy - Got request: GET http://192.168.211.149:8080/fx/npo/$bk/images/person.gif HTTP/1.1
-> 192.168.211.149:8080
18-03-2013 17:26:27,855 [Thread-18] DEBUG ru.naumen.servacc.HTTPProxy - Closing stream: java.net.SocketOutputStream@7c0b6548
18-03-2013 17:26:27,857 [Thread-12] ERROR ru.naumen.servacc.HTTPProxy - Failed to read connection java.io.PushbackInputStream@362f0d54
java.net.SocketException: Socket closed
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.FilterInputStream.read(FilterInputStream.java:116)
    at java.io.PushbackInputStream.read(PushbackInputStream.java:169)
    at java.io.FilterInputStream.read(FilterInputStream.java:90)
    at ru.naumen.servacc.HTTPProxy$Listener$1.run(HTTPProxy.java:200)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)