fix inbound buffer size for Android