- t->ret = recv_pattern(phd->fd, HTTP_OK_MSG, MAXLINE);
- if (t->ret < 0)
- goto out;
- PARA_INFO_LOG("%s", "received ok msg, streaming\n");
- t->ret = 1;
- phd->status = HTTP_STREAMING;
- goto out;
+ t->error = recv_pattern(phd->fd, HTTP_OK_MSG, MAXLINE);
+ if (t->error >= 0) {
+ PARA_INFO_LOG("received ok msg, streaming\n");
+ phd->status = HTTP_STREAMING;
+ }
+ return;
+ }
+ if (rn->loaded >= BUFSIZE) {
+ t->error = -E_HTTP_RECV_OVERRUN;
+ return;