This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HTTP send errno -1163019603

Dear Community;

I am using this code provided by a Nordic engineer to make some HTTP request in order to use Telegram Bot API. It works fine but after 1-2 days working I am getting an error at this part of the code: 

int num_bytes = send(client_fd, send_buf, send_data_len, 0);
if (num_bytes < 0) {
	printk("send errno: %d\n", errno);
	goto clean_up;
}

This is the error: "send errno: -1163019603"

The problem is that after first time this happens never recovers its normal functionality.

What is causing this error? How can be solved?

Any idea or suggestion is welcomed. Thanks.

Parents
  • Hello,

    One week ago Telegram Bot API updated the minimum TLS version to 1.2. For the code you gave me, I understand that I am using 1.2v TLS version, so should work fine:

    int client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TLS_1_2);

    Can anyone confirm that the version of TLS is 1.2?

    However, do you have any intention to include TLS 1.3v that was released in 2018?

    Thanks a lot.



Reply
  • Hello,

    One week ago Telegram Bot API updated the minimum TLS version to 1.2. For the code you gave me, I understand that I am using 1.2v TLS version, so should work fine:

    int client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TLS_1_2);

    Can anyone confirm that the version of TLS is 1.2?

    However, do you have any intention to include TLS 1.3v that was released in 2018?

    Thanks a lot.



Children
No Data
Related