wiced_tcp_connect called from http_client_connect returns error 4 and 7014

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YaSe_4616256
Level 2
Level 2
10 replies posted 5 replies posted 5 questions asked

<Our background>
We are developing TLS(https) client software.
In this development, we reuse the following example source file with some modification.

*The location of the original source file "httpbin_org.c"
     "doc\WICED-Studio-6.4\43xxx_Wi-Fi\apps\snip\httpbin_org\httpbin_org.c"

  • Our software repeatedly connects and disconnects with TLS to a specific server.
  • The main changes to the above "httpbin_org.c" are as follows
  1. Add put and post
  2. support redirect("HTTP/1.1 302 Found")
  3. support split download("Accept-Ranges: bytes")

This time, among the above, we conducted a long-term test that repeats get / put / post and connecting and disconnecting to the TLS server.
(The above "redirect" and "split download" are not running in this test.)

As a result, the "wiced_tcp_connect" called by "http_client_connect" returned the following error:

  • Wait error(4)
  • Socket closed(7014 )

*The location of the source file of the function "http_client_connect":
    "doc\WICED-Studio-6.4\43xxx_Wi-Fi\libraries\protocols\HTTP_client\http_client.c"

The time elapsed before these errors occur is irregular.
It may occur 20 minutes after the start of execution, or it may occur 10 hours later.

And whenever the above "Wait error" occurs, "internal_nx_tcp_socket_disconnect_callback" is always called to let us know that TLS server is disconnected during the connection.


<Our question>
Please tell me the meaning of the above two errors and how to avoid them.
I've tried several methods so far, but I can't recover, and at the moment I can't recover except by resetting.

 

0 Likes
3 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Is it possible that you can share your code example with us to better debug the issue? If not in the open forum, then you can share the code in a private message as well.

Thanks

Aditi

0 Likes

Dear Aditi,

Thank you for your support!
It's late, but I've attached the source code of our extended HTTPS client in PDF format.

This source is our actual source code with the application-specific description removed.
I haven't attached the source or headers of the relevant subfunctions, but you can see what extensions we have and how we call the relevant WICED APIs.

Best Regards,
Yasuhiro Seno

 

0 Likes
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

@Aditi_B 

It has been quite long time since the code was posted as you requested.

What's your finding about the issue?

0 Likes