mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
back to non-blockin splice on sending
This commit is contained in:
parent
603ab8187f
commit
8af9ea8de8
@ -236,7 +236,7 @@ int splicemap(struct clientparam * param, int timeo){
|
|||||||
#if DEBUGLEVEL > 2
|
#if DEBUGLEVEL > 2
|
||||||
(*param->srv->logfunc)(param, "splice: recv from client");
|
(*param->srv->logfunc)(param, "splice: recv from client");
|
||||||
#endif
|
#endif
|
||||||
res = splice(param->clisock, NULL, pipecli[1], NULL, rfromclient, SPLICE_F_MOVE);
|
res = splice(param->clisock, NULL, pipecli[1], NULL, rfromclient, SPLICE_F_NONBLOCK | SPLICE_F_MOVE);
|
||||||
if (res < 0){
|
if (res < 0){
|
||||||
if(errno == EINTR) so._poll(NULL, 0, 1);
|
if(errno == EINTR) so._poll(NULL, 0, 1);
|
||||||
else if(errno != EAGAIN) RETURN(94);
|
else if(errno != EAGAIN) RETURN(94);
|
||||||
@ -256,7 +256,7 @@ int splicemap(struct clientparam * param, int timeo){
|
|||||||
#if DEBUGLEVEL > 2
|
#if DEBUGLEVEL > 2
|
||||||
(*param->srv->logfunc)(param, "splice: recv from server");
|
(*param->srv->logfunc)(param, "splice: recv from server");
|
||||||
#endif
|
#endif
|
||||||
res = splice(param->remsock, NULL, pipesrv[1], NULL, rfromserver, SPLICE_F_MOVE);
|
res = splice(param->remsock, NULL, pipesrv[1], NULL, rfromserver, SPLICE_F_NONBLOCK | SPLICE_F_MOVE);
|
||||||
if (res < 0){
|
if (res < 0){
|
||||||
if(errno == EINTR) so._poll(NULL, 0, 1);
|
if(errno == EINTR) so._poll(NULL, 0, 1);
|
||||||
else if(errno != EAGAIN) RETURN(93);
|
else if(errno != EAGAIN) RETURN(93);
|
||||||
|
Loading…
Reference in New Issue
Block a user