Hello everyone,
I am using esp-idf v3.2. I am using esp_http_client librairy in my code. I am using this librairy to post multiple http requests simultaneously. but some times it gives me an error (TRANS_TCP: Error create socket) and the device cannot recovers until we give it power cycle. how to recover device from this error.
I am using following API's to close connection for each request.
esp_http_client_close(client);
esp_http_client_cleanup(client);
Please help me to solve this issue.
TRANS_TCP: Error create socket
TRANS_TCP: Error create socket
Thanks,
Somesh Burkule
Somesh Burkule
Re: TRANS_TCP: Error create socket
Hello,somesh wrote: ↑Thu Jul 11, 2019 7:03 amHello everyone,
I am using esp-idf v3.2. I am using esp_http_client librairy in my code. I am using this librairy to post multiple http requests simultaneously. but some times it gives me an error (TRANS_TCP: Error create socket) and the device cannot recovers until we give it power cycle. how to recover device from this error.
I am using following API's to close connection for each request.
esp_http_client_close(client);
esp_http_client_cleanup(client);
Please help me to solve this issue.
Would you please check same issue with Master branch as well?
Also I would like to check socket ID as well in parallel for each connections. It will be good if you can share your example with details output which will be useful to address out issue quickly.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: TRANS_TCP: Error create socket
Hi,Ritesh wrote: ↑Sun Jul 14, 2019 4:38 amHello,somesh wrote: ↑Thu Jul 11, 2019 7:03 amHello everyone,
I am using esp-idf v3.2. I am using esp_http_client librairy in my code. I am using this librairy to post multiple http requests simultaneously. but some times it gives me an error (TRANS_TCP: Error create socket) and the device cannot recovers until we give it power cycle. how to recover device from this error.
I am using following API's to close connection for each request.
esp_http_client_close(client);
esp_http_client_cleanup(client);
Please help me to solve this issue.
Would you please check same issue with Master branch as well?
Also I would like to check socket ID as well in parallel for each connections. It will be good if you can share your example with details output which will be useful to address out issue quickly.
Issue resolved. my mistake. I have not used esp_http_client_cleanup() at one point. thank you for your response.
I want to ask one question, is esp softreset( esp_restart() ) clear's all connections and start's with new connections?
Thanks,
Somesh Burkule
Somesh Burkule
Re: TRANS_TCP: Error create socket
Hello,somesh wrote: ↑Mon Jul 15, 2019 7:13 amHi,Ritesh wrote: ↑Sun Jul 14, 2019 4:38 amHello,somesh wrote: ↑Thu Jul 11, 2019 7:03 amHello everyone,
I am using esp-idf v3.2. I am using esp_http_client librairy in my code. I am using this librairy to post multiple http requests simultaneously. but some times it gives me an error (TRANS_TCP: Error create socket) and the device cannot recovers until we give it power cycle. how to recover device from this error.
I am using following API's to close connection for each request.
esp_http_client_close(client);
esp_http_client_cleanup(client);
Please help me to solve this issue.
Would you please check same issue with Master branch as well?
Also I would like to check socket ID as well in parallel for each connections. It will be good if you can share your example with details output which will be useful to address out issue quickly.
Issue resolved. my mistake. I have not used esp_http_client_cleanup() at one point. thank you for your response.
I want to ask one question, is esp softreset( esp_restart() ) clear's all connections and start's with new connections?
Yes. It will clear all connections but better to clear connections from our side before restarting ESP32 using esp_restart for safe side.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: TRANS_TCP: Error create socket
Ok. Thanks.Ritesh wrote: ↑Mon Jul 15, 2019 8:25 amHello,somesh wrote: ↑Mon Jul 15, 2019 7:13 amHi,Ritesh wrote: ↑Sun Jul 14, 2019 4:38 am
Hello,
Would you please check same issue with Master branch as well?
Also I would like to check socket ID as well in parallel for each connections. It will be good if you can share your example with details output which will be useful to address out issue quickly.
Issue resolved. my mistake. I have not used esp_http_client_cleanup() at one point. thank you for your response.
I want to ask one question, is esp softreset( esp_restart() ) clear's all connections and start's with new connections?
Yes. It will clear all connections but better to clear connections from our side before restarting ESP32 using esp_restart for safe side.
Thanks,
Somesh Burkule
Somesh Burkule
Who is online
Users browsing this forum: No registered users and 87 guests