-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Send Big POST to HTTP Library, sometimes return empty reply from server #3699
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@alexwbaule please try:
|
Tks @devyte , i will try later and post the result here ! |
I did the test, and still happens. Using the GIT version.
|
@alexwbaule did you try the PR? |
Im using now the 2.4.0-rc2, still happens, but it's less. In the 2.4.0-rc2, has this 2 PR's that you refers ? |
No, the lwip2 PR is something different that won't get merged until after 2.4 release. |
Ok, tonight i will get the lwip2, and use with the 2.4.0-rc2, and i give you a anser. |
Hi @devyte , how can i update the lwip2 to this PR version that you talk ? Looking to the lwip, its part of the sdk... i have to clone the esp8266, and get all the commits from the PR ? |
@alexwbaule git allows to pull the PR directly over your local git install. Just google "github how to test pr locally" or something. It's not hard. I'd give you a direct link to a tutorial, but I'm travelling and only have phone access atm. |
Hi @devyte , sorry about the delay. Can you help me get these PRs ? I'm trying to catch the PRs adding this "fetch = +refs/pull//head:refs/remotes/origin/pr/" to config, and getting the origin again. |
The first one, that you said is a Issue, that generate this PR #3278 Correct ? |
Things have advanced somewhat. Latest git already has both PRs, so please install that, select lwip2 from the Arduino menu, rebuild, and retest. |
Ok, today i will test this. |
Ok, i made the Test: With LWIP v2 : Fail with the same result at the second POST
With Prebuild Sources (gcc): Fail with the same result at the fifth POST
With Expressif(xcc): Failt with same result at the first POST
With OpenSource (gcc): Fail at the second POST, no reboots.
|
@alexwbaule Please confirm the fix, or reopen the issue |
Ok, I will test in a couple of hours, just when i arrived at my house. |
Hi @d-a-v , still happens, using the lwIP v2.
How to reopen this issue ? |
I made more outputs for DEBUG, to see where is the problem.
With this prints , i see that "client.available()" is returning zero, looking to this function, its point to "getSize()" in libraries/ESP8266WiFi/src/include/ClientContext.h correct ? |
Ok !! Let's go again. Increasing the "HTTP_MAX_POST_WAIT" from 1000 to 5000, helps a lot, sending 20 consecutives POSTS, none of them get the error and the reply was Ok. |
I'm more a crash guy than HTTP guy :) about 100-continue:
@devyte @igrr should WebServer handle 100-continue or should we unconditionally increase HTTP_POST_WAIT ? |
@alexwbaule can you test with master then close this issue ? |
Hi @d-a-v , you can close this issue, you do exactly what i do in the #3699 (comment) , and using this (5000 msec) works. TKs. |
I can't, you can :) |
OK ! Closing... |
Basic Infos
Hardware
Hardware: ESP-12F
Core Version: 2.3.0
Description
Using the ESP8266WebServer from library, making a big POST in the body, sometimes the reply from server is Empty.
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB/3MB
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
Debug Messages
Sometimes the 100-continue, works OK, sometimes gives a empty reply.
The text was updated successfully, but these errors were encountered: