Hi all.<div><br></div><div>I read kernel's source, there is sk_err_soft and sk_err in struct sock. this is their comment:</div><div><br></div><div><div> *<span class="Apple-tab-span" style="white-space:pre">        </span>@sk_err: last error</div>
<div> *<span class="Apple-tab-span" style="white-space:pre">        </span>@sk_err_soft: errors that don't cause failure but are the cause of a</div><div> *<span class="Apple-tab-span" style="white-space:pre">                </span> persistent failure not just 'timed out'</div>
<div><br></div>this make me confuse, why need <meta http-equiv="content-type" content="text/html; charset=utf-8">sk_err_soft? </div><div><br></div><div>I search linux kernel tree, and find use sk_err_soft in ICMP module.</div>
<div><br></div><div>after that in man 2 connect :</div><div><br></div><div><div>EINPROGRESS</div><div> The socket is nonblocking and the connection cannot be completed immediately. It is possible to select(2) or poll(2) for completion by</div>
<div> selecting the socket for writing. After select(2) indicates writability, use getsockopt(2) to read the SO_ERROR option at level SOL_SOCKET</div><div> to determine whether connect() completed successfully (SO_ERROR is zero) or unsuccessfully (SO_ERROR is one of the usual error codes listed</div>
<div> here, explaining the reason for the failure).</div></div><div><br></div><div>i know SO_ERROR will detect sk_err_soft and sk_err, <span class="Apple-style-span" style="font-family: Arial; font-size: 14px; line-height: 18px; ">further more</span> there is not detect sk_err_soft in tcp_poll. my question is why not return EPOLLERR in tcp_poll( detect sk_err_soft).</div>
<div><br></div><div>Thank!</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<div><br></div><div><br></div>-- <br>博观约取<br><br>豆瓣:<a href="http://www.douban.com/people/mustang/" target="_blank">www.douban.com/people/mustang/</a><br><br>blog: <a href="http://www.pagefault.info" target="_blank">www.pagefault.info</a><br>
<br>twitter: <a href="http://www.twitter.com/minibobo" target="_blank">www.twitter.com/minibobo</a><br>
</div>