ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Revise default RawsockMaxLength parameter? #39

Closed ecorm closed 9 years ago

ecorm commented 9 years ago

The default RawsockMaxLength parameter (for maximum received message length) in TcpConnector::create and UdsConnector::create is currently set to 64kB. This default value was arbitrarily chosen to fit into the default socket buffer size in Linux, which is ~85kB on my system.

Should the default value instead be the maximum length of 16MB? If users have tighter memory constraints, they can always specify a different maximum receive length.

ecorm commented 9 years ago

I'm going ahead and changing the default max length to 16MB, which is the maximum permitted by WAMP raw sockets. Users can decrease this value easily while instantiating their connectors.