mirror of https://github.com/m-labs/artiq.git
runtime/net_server: restore connection close behavior when len<0
This commit is contained in:
parent
fc558bcd27
commit
ffe4d81f3e
|
@ -168,11 +168,11 @@ static void tcp_pcb_service(void *arg, struct tcp_pcb *pcb)
|
|||
tcp_write(pcb, data, len, 0);
|
||||
instance->ack_consumed(len);
|
||||
}
|
||||
if(close_flag) {
|
||||
if(close_flag)
|
||||
tcp_output(pcb);
|
||||
if((len < 0) || close_flag)
|
||||
net_server_close(cs, pcb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void net_server_err(void *arg, err_t err)
|
||||
|
|
Loading…
Reference in New Issue