mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
tests/host: fixes and updates (#5537)
(LEAmDNS, broken pipe, non blocking accepted sockets, digitalRead)
This commit is contained in:
@ -135,7 +135,8 @@ size_t mockWrite (int sock, const uint8_t* data, size_t size, int timeout_ms)
|
||||
}
|
||||
if (ret)
|
||||
{
|
||||
ret = ::write(sock, data, size);
|
||||
//ret = ::write(sock, data, size);
|
||||
ret = ::send(sock, data, size, MSG_NOSIGNAL);
|
||||
if (ret == -1)
|
||||
{
|
||||
fprintf(stderr, MOCK "ClientContext::read: write(%d): %s\n", sock, strerror(errno));
|
||||
|
Reference in New Issue
Block a user