定时任务执行的一些错误信息困扰

就是我有个定时任务会定时拉取数据,这个是拉取数据时出现的error(web 的报错信息)

<ERROR> :Close a connection with fd=122, error=1, error code 11

请先 登录 后评论

1 个回答

peter

linux里I/O操作的通用error code,调用fclose(fd)调用返回了EAGAIN(errno=11)。EAGAIN不是真正的错误,可以忽略。

fclose有以下几种状态:

RETURN VALUES
If successful, fclose() returns a value of zero. On failure, it returns EOF, and sets errno to one of the following values:
EAGAIN 
The O_NONBLOCK flag is set for the file descriptor underlying stream, and the process would be delayed in the write operation.
EBADF 
The file descriptor underlying stream is not valid.
EFBIG 
The file is a regular file and an attempt was made to write at or beyond the offset maximum associated with the corresponding stream.
EINTR 
The fclose() function was interrupted by a signal.
ENOSPC 
There was no free space remaining on the device containing the file.
EPIPE 
An attempt was made to write to a pipe or FIFO that is not open for reading by any process. A SIGPIPE signal is also sent to the process.

请先 登录 后评论
  • 1 关注
  • 0 收藏,206 浏览
  • wfHuang 提出于 2024-02-23 15:51

相似问题