Skip to content

Commit

Permalink
BDatagram: Remove error messages about failed send
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrop72 committed Sep 26, 2017
1 parent ed51311 commit 43ba4ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion system/BDatagram_unix.c
Expand Up @@ -333,7 +333,6 @@ static void do_send (BDatagram *o)
return;
}

BLog(BLOG_ERROR, "send failed");
report_error(o);
return;
}
Expand Down
3 changes: 0 additions & 3 deletions system/BDatagram_win.c
Expand Up @@ -232,15 +232,13 @@ static void start_send (BDatagram *o)
// send
int res = o->fnWSASendMsg(o->sock, &o->send.msg, 0, NULL, &o->send.olap.olap, NULL);
if (res == SOCKET_ERROR && WSAGetLastError() != WSA_IO_PENDING) {
BLog(BLOG_ERROR, "WSASendMsg failed (%d)", WSAGetLastError());
report_error(o);
return;
}
} else {
// send
int res = WSASendTo(o->sock, &buf, 1, NULL, 0, &o->send.sysaddr.addr.generic, o->send.sysaddr.len, &o->send.olap.olap, NULL);
if (res == SOCKET_ERROR && WSAGetLastError() != WSA_IO_PENDING) {
BLog(BLOG_ERROR, "WSASendTo failed (%d)", WSAGetLastError());
report_error(o);
return;
}
Expand Down Expand Up @@ -390,7 +388,6 @@ static void send_olap_handler (BDatagram *o, int event, DWORD bytes)
o->send.data_busy = 0;

if (event == BREACTOR_IOCP_EVENT_FAILED) {
BLog(BLOG_ERROR, "sending failed");
report_error(o);
return;
}
Expand Down

0 comments on commit 43ba4ed

Please sign in to comment.