mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 13:20:42 +01:00
Merge pull request #3589 from rsyslog/revert-3535-issue-1503
Revert "WiP: rsyslog doesn't respond to TLS close_notify "
This commit is contained in:
commit
1a95406046
@ -896,12 +896,12 @@ CheckConnection(nsd_t *pNsd)
|
||||
{
|
||||
DEFiRet;
|
||||
int rc;
|
||||
char msgbuf[32]; /* dummy */
|
||||
char msgbuf[1]; /* dummy */
|
||||
nsd_ptcp_t *pThis = (nsd_ptcp_t*) pNsd;
|
||||
ISOBJ_TYPE_assert(pThis, nsd_ptcp);
|
||||
|
||||
rc = recv(pThis->sock, msgbuf, 32, MSG_DONTWAIT | MSG_PEEK);
|
||||
if(rc >= 0 && errno != EAGAIN) {
|
||||
rc = recv(pThis->sock, msgbuf, 1, MSG_DONTWAIT | MSG_PEEK);
|
||||
if(rc == 0 && errno != EAGAIN) {
|
||||
dbgprintf("CheckConnection detected broken connection - closing it\n");
|
||||
/* in this case, the remote peer had shut down the connection and we
|
||||
* need to close our side, too.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user