未验证 提交 b9d63365 编写于 作者: H HubretXie 提交者: GitHub

Update at_socket.c

at接收超时 添加   EAGAIN  类型返回
上级 5aeb8dce
......@@ -668,6 +668,7 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
if (rt_sem_take(sock->recv_notice, timeout) < 0)
{
LOG_E("AT socket (%d) receive timeout (%d)!", socket, timeout);
errno = EAGAIN;
result = -1;
goto __exit;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册