Skip to content

Avoid network timeout error in the agent on unsupported platforms#2001

Merged
vikman90 merged 1 commit into3.8from
silence-timeout-error
Dec 3, 2018
Merged

Avoid network timeout error in the agent on unsupported platforms#2001
vikman90 merged 1 commit into3.8from
silence-timeout-error

Conversation

@vikman90
Copy link
Member

The agent sets a receiving timeout when operating in TCP mode. This prevents the agent from getting locked if the manager does not respond.

Some old operating systems like Solaris 10 don't support socket timeout. This produces the next error while trying to set up the receiving timeout on startup:

2018/11/28 04:57:45 ossec-agentd: ERROR: OS_SetRecvTimeout failed with error 'Option not supported by protocol'

This issue does not prevent the correct functioning of the agent. This PR will switch this error into a level-1 debug log.

@vikman90 vikman90 requested a review from albertomn86 November 28, 2018 22:49
@vikman90 vikman90 added this to the 49th week sprint milestone Nov 28, 2018
@vikman90 vikman90 added module/agent Issues related to the agent daemon reporter/operations labels Nov 28, 2018
@vikman90 vikman90 requested review from chemamartinez and removed request for albertomn86 December 3, 2018 10:49
@vikman90 vikman90 self-assigned this Dec 3, 2018
@vikman90 vikman90 merged commit db581f1 into 3.8 Dec 3, 2018
@vikman90 vikman90 deleted the silence-timeout-error branch December 3, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/agent Issues related to the agent daemon reporter/operations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants