Skip to content
Snippets Groups Projects
Commit f2a7dab6 authored by deuce's avatar deuce
Browse files

Stop trying to send data once the entire string has been sent. :-)

parent 1febf92c
Branches
Tags
No related merge requests found
......@@ -386,7 +386,7 @@ static int sockprint(SOCKET sock, const char *str)
lprintf("%04d TX: %s", sock, str);
len=strlen(str);
while(socket_check(sock,NULL,&wr,60000) && wr) {
while(socket_check(sock,NULL,&wr,60000) && wr && written<len) {
result=sendsocket(sock,str+written,len-written);
if(result==SOCKET_ERROR) {
if(ERROR_VALUE==ECONNRESET)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment