Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

TLS finish of HTTP.query

While using HTTP.query in mJS (with REST API of io.adafruit.com) HTTP transaction is interrupted by:

[Dec 31 01:09:48.274] mg_ssl_mbed_log      0x3ffdee98 mbedtls_ssl_handle_message_type() returned -30848 (-0x7880)
[Dec 31 01:09:48.283] mg_ssl_mbed_log      0x3ffdee98 mbedtls_ssl_read_record() returned -30848 (-0x7880)

and finishes with empty error. But data are transferred to server and it seams that response is also transferred back to client.

I suppose MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY
is ok (after data transfer) with one time HTTP/1.0 transaction without keepalive.

Should not that be fixed in Mongoose OS libs please ?

Comments

  • rojerrojer Dublin, Ireland

    yes, MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY should not be an error.

  • rojerrojer Dublin, Ireland

    i looked into it and yes, it's purely cosmetic - the request succeeds and the reply is fully read. i submitted a change to silence this message when logging.

Sign In or Register to comment.