Lines Matching refs:retries
73 unsigned int retries; member
312 for (int i = 0; i <= self->retries; i++) { in socket_accept()
325 if (self->retries == 0) { in socket_accept()
436 sock->retries = (timeout_ms == UINT64_MAX) ? UINT_MAX : timeout_ms * 1000 / SOCKET_POLL_US; in _socket_settimeout()
489 for (int i = 0; i <= sock->retries; ++i) { in _socket_read_data()
521 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in _socket_read_data()
565 for (int i = 0; i <= sock->retries && sentlen < datalen; i++) { in _socket_send()
579 mp_raise_OSError(sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT); in _socket_send()
621 for (int i = 0; i <= self->retries; i++) { in socket_sendto()
655 for (int i = 0; i <= sock->retries; i++) { in socket_stream_write()
669 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in socket_stream_write()