簡體   English   中英

boost :: system :: error_code產生錯誤158未知

[英]boost::system::error_code producing error 158 unknown

我正在使用boost::system::error_code將錯誤代碼捕獲到日志文件中,並且正在記錄unknown error 我在網上沒有找到對此錯誤的任何引用。

bool read_response_payload(size_t payload_len)
{
     boost::system::error_code ec;
     stream_connector<protocol_type, INTERFACE_BUFFER_LEN,
            INTERFACE_TIMEOUT_SECS>::read_all(payload_len, ec);
     if (ec) {
            LOGGER_LOG_WARN("Interface read error: %s", ec.message().c_str());
            stream_connector<protocol_type, INTERFACE_BUFFER_LEN,
                INTERFACE_TIMEOUT_SECS>::disconnect();
            return false;
     }
     else {
            return true;
     }
}

在日志文件中,我收到如下消息:

Interface read error: Unknown error 158

系統是:

root@OpenWrt:~# uname -a
Linux OpenWrt 2.6.30.9 #4 Thu Jul 3 16:08:13 BRT 2014 rlx GNU/Linux

如注釋中所建議,這是OpenWRT的<asm/errno.h>描述的錯誤。

#define ECONNREFUSED    146 /* Connection refused */
#define EHOSTDOWN   147 /* Host is down */
#define EHOSTUNREACH    148 /* No route to host */
#define EWOULDBLOCK EAGAIN  /* Operation would block */
#define EALREADY    149 /* Operation already in progress */
#define EINPROGRESS 150 /* Operation now in progress */
#define ESTALE      151 /* Stale NFS file handle */
#define ECANCELED   158 /* AIO operation canceled */

這是已取消的異步IO操作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM