summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'segget/proxyfetcher.cpp')
-rw-r--r--segget/proxyfetcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/segget/proxyfetcher.cpp b/segget/proxyfetcher.cpp
index 67ab164..dc60afa 100644
--- a/segget/proxyfetcher.cpp
+++ b/segget/proxyfetcher.cpp
@@ -90,7 +90,9 @@ void *run_proxy_fetcher_server(void * ){
debug("removing client on fd:"+toString(fd));
}else{
char buffer[100000]="";
- read(fd, &buffer, nread);
+ if (nread!=read(fd, &buffer, nread)){
+ error_log("Error in proxyfetcher.cpp : run_proxy_fetcher_server(): Not all data has been read from proxy-fetcher-client");
+ }
debug("serving client - read");
debug("serving client on fd"+toString(fd));
string recv_msg=buffer;