Skip to content

Commit

Permalink
Error handling fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend Oftedal authored and Erlend Oftedal committed Apr 16, 2010
1 parent d56fee9 commit 503d85e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy-backend/malaria/MalariaServer.java
Expand Up @@ -55,6 +55,7 @@ public void serveSocket(Socket client, ServerSocket proxySocket, String hostname
return;
}

handleProxyRequests:
while (true) {
Socket proxyClient = proxySocket.accept();
InputStreamReader proxyIn = new InputStreamReader(proxyClient.getInputStream());
Expand All @@ -79,7 +80,7 @@ public void serveSocket(Socket client, ServerSocket proxySocket, String hostname
proxyOut.flush();
proxyClient.close();
System.out.println("Not accessible");
continue;
continue handleProxyRequests;
}
if (dl == -1) {
String fl = new String(buffer, "UTF8").toString().split(":", 2)[0];
Expand Down

0 comments on commit 503d85e

Please sign in to comment.