Created
July 2, 2015 12:54
-
-
Save ivan-tkatchev/a2b150e6df6b66f63d05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/server.cpp b/server.cpp | |
index ccb051f..328e5e6 100644 | |
--- a/server.cpp | |
+++ b/server.cpp | |
@@ -16,8 +16,11 @@ struct service_thread | |
try | |
{ | |
- s >> b; | |
- s << "bar"; | |
+ while (true) { | |
+ s >> b; | |
+ s << "bar"; | |
+ } | |
+ } catch (eof_exception& e) { | |
} catch (std::exception& e) | |
{ | |
std::cerr << "SERVER ERR: " << e.what() << std::endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment