virtual int run() { char buf[2049]; int readlen = 0; do { readlen = recv(m_r->OShandle(), buf, 2048, 0); if(readlen > 0) { buf[readlen] = 0; m_w->write(buf, readlen); // make it not to log unless it's REALLY needed. if(http_tracelevel >= 20 && m_ofile != NULL) { fprintf(m_ofile, "%s", buf); } } else { m_w->shutdown(); m_w->close(); break; } } while(true); return 0; }
virtual int run() { char buf[2049]; int readlen = 0; do { readlen = recv(m_r->OShandle(), buf, 2048, 0); if(readlen > 0) { buf[readlen] = 0; m_w->write(buf, readlen); } else { m_w->shutdown(); m_w->close(); break; } } while(true); return 0; }