Browse files

Error handling fixed

  • Loading branch information...
1 parent d56fee9 commit 503d85e54feb680e548e12b68c2d6e0776da6d0c Erlend Oftedal committed Apr 16, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 proxy-backend/malaria/MalariaServer.java
View
3 proxy-backend/malaria/MalariaServer.java
@@ -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());
@@ -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];

0 comments on commit 503d85e

Please sign in to comment.