mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-07 11:05:39 +00:00
testing (#1354)
* run * print socketg error on change * typo * resa * fix?? * try * try error * fix error, add more info * some tests * more self tests * tests
This commit is contained in:
@ -78,6 +78,8 @@ int HTTPServer_Start() {
|
||||
}
|
||||
}
|
||||
#define DEFAULT_BUFLEN 10000
|
||||
int g_prevHTTPResult;
|
||||
|
||||
void HTTPServer_RunQuickTick() {
|
||||
int iResult;
|
||||
int err;
|
||||
@ -93,7 +95,10 @@ void HTTPServer_RunQuickTick() {
|
||||
if (ClientSocket == INVALID_SOCKET) {
|
||||
iResult = WSAGetLastError();
|
||||
if(iResult != WSAEWOULDBLOCK) {
|
||||
printf("accept failed with error: %d\n", iResult);
|
||||
if (iResult != g_prevHTTPResult) {
|
||||
printf("accept failed with error: %d\n", iResult);
|
||||
g_prevHTTPResult = iResult;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user