<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ??; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><span style="background-color: rgba(0, 0, 0, 0);">src/os/unix/ngx_recv.c</span></div>
<div><br></div><div>in function:</div><div><span class="nf" style="color: rgb(153, 0, 0); font-weight: bold; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">ssize_t ngx_unix_recv</span><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">(</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">ngx_connection_t </span><span class="o" style="font-weight: bold; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">*</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">c</span><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">,</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> u_char </span><span class="o" style="font-weight: bold; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">*</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">buf</span><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">,</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> </span><span class="kt" style="color: rgb(68, 85, 136); font-weight: bold; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">size_t</span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> size</span><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">)</span></div><div><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"><br></span></div><div><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> err <span class="o" style="font-weight: bold;">=</span> ngx_socket_errno<span class="p">; </span></span></div><div><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"><span class="p">should before</span></span></div><div><span class="p" style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"><span class="p"> ngx_log_debug3<span class="p">(</span>NGX_LOG_DEBUG_EVENT<span class="p">,</span> c<span class="o" style="font-weight: bold;">-></span>log<span class="p">,</span> <span class="mi" style="color: rgb(0, 153, 153);">0</span><span class="p">,</span></span></span><span class="s" style="background-color: window; color: rgb(187, 136, 68); font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">"recv: fd:%d %d of %d"</span><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">,</span><span style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> c</span><span class="o" style="background-color: window; font-weight: bold; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">-></span><span style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">fd</span><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">,</span><span style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> n</span><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">,</span><span style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"> size</span><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">);</span></div><div><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;"><br></span></div><div><span class="p" style="background-color: window; font-family: monospace; font-size: 12px; line-height: normal; widows: 1;">because </span><span style="font-family: monospace; font-size: 12px; line-height: normal; widows: 1; background-color: window;">ngx_log_debug3 may change errno, for example change errno from EAGAIN to EPIPE.</span></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>jiakai1000@gmail.com</div></div></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div>
</div></blockquote>
</body></html>