mirror of https://github.com/eclipse/paho.mqtt.c
Remove debugging for Linux/MacOS
This commit is contained in:
parent
35a29737a2
commit
60bf17c36e
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
mkdir build.paho
|
||||
cd build.paho
|
||||
echo "pwd $PWD"
|
||||
cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR= -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=FALSE ..
|
||||
cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR= -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=TRUE ..
|
||||
cmake --build .
|
||||
- name: Start test broker
|
||||
run: |
|
||||
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
- name: run tests
|
||||
run: |
|
||||
cd build.paho
|
||||
ctest -VV --timeout 600 -R "test5-7-ws-big-messages"
|
||||
ctest -VV --timeout 600
|
||||
- name: clean up
|
||||
run: |
|
||||
killall python3 || true
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
- name: run tests
|
||||
run: |
|
||||
cd build.paho
|
||||
ctest -VV --timeout 600 -R "test5-7-ws-big-messages"
|
||||
ctest -VV --timeout 600
|
||||
- name: clean up
|
||||
run: |
|
||||
killall python3 || true
|
||||
|
|
|
|||
17
src/Socket.c
17
src/Socket.c
|
|
@ -238,17 +238,7 @@ int isReady(int index)
|
|||
FUNC_ENTRY;
|
||||
|
||||
if ((mod_s.saved.fds[index].revents & POLLHUP) || (mod_s.saved.fds[index].revents & POLLNVAL))
|
||||
//; /* signal work to be done if there is an error on the socket */
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
printf("isReady socket %ld POLLHUP %d POLLNVAL %d POLLIN %d POLLOUT %d\n",
|
||||
#else
|
||||
printf("isReady socket %d POLLHUP %d POLLNVAL %d POLLIN %d POLLOUT %d\n",
|
||||
#endif
|
||||
*socket,
|
||||
(mod_s.saved.fds[index].revents & POLLHUP),
|
||||
(mod_s.saved.fds[index].revents & POLLNVAL),
|
||||
(mod_s.saved.fds[index].revents & POLLIN),
|
||||
(mod_s.saved.fds[index].revents & POLLOUT));
|
||||
; /* signal work to be done if there is an error on the socket */
|
||||
else if (ListFindItem(mod_s.connect_pending, socket, intcompare) &&
|
||||
(mod_s.saved.fds[index].revents & POLLOUT))
|
||||
ListRemoveItem(mod_s.connect_pending, socket, intcompare);
|
||||
|
|
@ -689,11 +679,6 @@ int Socket_close(SOCKET socket)
|
|||
}
|
||||
}
|
||||
Log(TRACE_MIN, -1, "Removed socket %d", socket);
|
||||
|
||||
printf("Socket_close:\n");
|
||||
#if !defined(HIGH_PERFORMANCE)
|
||||
StackTrace_printStack(stdout);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
Log(LOG_ERROR, -1, "Failed to remove socket %d", socket);
|
||||
|
|
|
|||
Loading…
Reference in New Issue