REM3-196 fix rec/send buffer size allocation

JIRA: https://issues.jboss.org/browse/REM3-196