Http-server loop: conn=1 avail=0 status=wait-read

Hi,

i've installed a fresh linux system with newest version of Arduino.

Now the following code

#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiClient.h>

// Initialisierungen
ESP8266WebServer server(80);
WiFiClient wifiClient;

const char indexPage[] PROGMEM = R"=====(
Test
)=====";

void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_AP);
WiFi.softAP("test", "123456789");
Serial.print("Accesspoint address: ");
Serial.println(WiFi.softAPIP());
server.on("/", display_root);
server.begin();
}

void loop() {
server.handleClient();
delay(500);
}

void display_root() {
Serial.println("Display root");
server.send(200, "text/html", indexPage);
}

gives me the following output in terminal

New client
http-server loop: conn=1 avail=485 status=wait-read
request: GET / HTTP/1.1
method: GET url: / search:  keepAlive=: 1
headerName: Host
headerValue: 192.168.4.1
headerName: Connection
headerValue: keep-alive
headerName: Cache-Control
headerValue: max-age=0
headerName: Upgrade-Insecure-Requests
headerValue: 1
headerName: User-Agent
headerValue: Mozilla/5.0 (Linux; Android 10; SM-A600FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
headerName: Accept
headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
headerName: Accept-Encoding
headerValue: gzip, deflate
headerName: Accept-Language
headerValue: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
args: 
args count: 0
args: 
args count: 0
Request: /
Arguments: 
final list of key/value pairs:
Display root
http-server loop: conn=0 avail=0 status=wait-close
Drop client
New client
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
webserver: closing after read timeout
Drop client

in my old system with previous Arduino version i didnt have this output.
Is this a fault (http-server loop) or is everything ok?
If everything ok: How can i switch off this output?

Best wishes
E.

EDIT: This behaviour is only on my linux system. Same code in Windows-Arduino runs without this strange terminal outputs. Has anyone an idea, why the linux version behaves different from windows version? Are Linux useres in here?

If you look at ESPWebServer.cpp, there are several debugging statements near the top the control this output, specifically DEBUG_ESP_HTTP_SERVER

That should be commented out

OK, i will try. Thank you for your help.

But why do i have not to comment this out in windows version?
And why didnt i have to comment this out in my previous Arduino installation on my previous Manjaro System? Just want to understand it ...

I have no idea. It looks like it is commented out by default with the latest on github.

In the IDE select Tools->Debug Level->None

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.