Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make http-server less verbose in debug mode#8850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 4 commits intoesp8266:masterfromd-a-v:http-debug-silencer
Feb 5, 2023
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
make http-server less verbose in debug mode
  • Loading branch information
@d-a-v
d-a-v committedFeb 5, 2023
commit3021a9bf1dc205029aec6b60b4825e24b09f33ac
30 changes: 24 additions & 6 deletionslibraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -296,12 +296,30 @@ void ESP8266WebServerTemplate<ServerType>::handleClient() {
bool keepCurrentClient = false;
bool callYield = false;

DBGWS("http-server loop: conn=%d avail=%d status=%s\n",
_currentClient.connected(), _currentClient.available(),
_currentStatus==HC_NONE?"none":
_currentStatus==HC_WAIT_READ?"wait-read":
_currentStatus==HC_WAIT_CLOSE?"wait-close":
"??");
#ifdef DEBUG_ESP_HTTP_SERVER

struct compare_s
{
uint8_t connected;
int available;
HTTPClientStatus status;
bool operator != (const compare_s& o) { return memcmp(this, &o, sizeof(o)) != 0; }
};
static compare_s last { false, 0, HC_NONE };
compare_s now = { _currentClient.connected(), _currentClient.available(), _currentStatus };

if (last != now)
{
DBGWS("http-server loop: conn=%d avail=%d status=%s\n",
_currentClient.connected(), _currentClient.available(),
_currentStatus==HC_NONE?"none":
_currentStatus==HC_WAIT_READ?"wait-read":
_currentStatus==HC_WAIT_CLOSE?"wait-close":
"??");
last = now;
}

#endif // DEBUG_ESP_HTTP_SERVER

if (_currentClient.connected() || _currentClient.available()) {
if (_currentClient.available() && _keepAlive) {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp