Topic: Transmission speed is slow based on wolfssl
I implement a process based on wolfssl in QNX platform. And I compiled all WolfSSL sources with the following definitions:
-DOPENSSL_EXTRA -DHAVE_STUNNEL -DWOLFSSL_ALWAYS_VERIFY_CB -DATOMIC_USER -g -DDEBUG -DDEBUG_WOLFSSL -DWOLFSSL_HAVE_MIN -DHAVE_AESGCM -DWOLFSSL_KEY_GEN -DWOLFSSL_CERT_GEN -DWOLFSSL_CERT_REQ -DHAVE_ECC -Wall -Wno-unused -DHAVE_NULL_CIPHER -DWOLFSSL_STATIC_PSK -DHAVE_TLS_EXTENSIONS -DHAVE_SECURE_RENEGOTIATION -DNO_SESSION_CACHE
Set the CipherSuit(ECDHE-ECDSA-AES128-GCM-SHA256)
I transfer a file on one socket using POSIX recv() and send(), the transmission speed is 13760kbps. And I transfer the same file on the same socket using wolfSSL_read() and wolfSSL_write(), the the transmission speed is 2552kbps.
So, my question is if it is normal that the two transmission speed is such a big gap.