Thank you Jonathan for your reply.
I tried setting the OPT_RBSIZE and OPT_TBSIZE as shown below (I think this is what you meant), but it made no difference. I'm not sure if I did it correctly however. I tried doing this before each of SSL_init(), mss_ssl_ca_mgmt_init_upcalls(), mss_rtcs_connect_socket(), SSL_connect(), SSL_ioctl(), and SSL_negotiateConnection() in mss_ssl_client(). None of these had any apparent effect. (I was checking the RAM highwater value before and after sending a transaction.)
uint_32 opt_value;
opt_value = 1108;
if (RTCS_OK != setsockopt(mySocket, SOL_TCP, OPT_RBSIZE, (void *)&opt_value, sizeof(opt_value))) {
printf("setsockopt OPT_RBSIZE failed\n");
}
if (RTCS_OK != setsockopt(mySocket, SOL_TCP, OPT_TBSIZE, (void *)&opt_value, sizeof(opt_value))) {
printf("setsockopt OPT_TBSIZE failed\n");
}
EDIT: Disregard the above question - after digging a little deeper I found that mss_rtcs_connect_socket() is actually already setting the send and receive buffer sizes. In fact it sets it down to 256 so I don't think I should go lower than that.