wso2 / transport-http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown channel option Warning from Server Bootstrap

daneshk opened this issue · comments

Description:
Observe below warning when server startup. This is because SO_KEEPALIVE and SO_SNDBUF are not channel options for ServerSocketChannels. According to the java docs[1], ServerSocketChannel below options,

  1. https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ServerSocketChannel.html
Option Name Description
SO_RCVBUF The size of the socket receive buffer
SO_REUSEADDR Re-use address

WARN Message

2017-12-07 12:32:57 WARN  ServerBootstrap:146 - Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0xac0fb464]'
2017-12-07 12:33:03 WARN  ServerBootstrap:146 - Unknown channel option 'SO_SNDBUF' for channel '[id: 0xac0fb464]'

Need to remove setting those options in ServerConnectorBootstrap class.

Suggested Labels:
Bug

Suggested Assignees:
@shafreenAnfar

Affected Product Version:
6.0.51

OS, DB, other environment details and versions:
environment independent issue.

Steps to reproduce:
warning message appears when server startup.

Related Issues:
N/A