Skip to content

Commit

Permalink
runtime/net_server: restore connection close behavior when len<0
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 19, 2016
1 parent fc558bc commit ffe4d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/runtime/net_server.c
Original file line number Diff line number Diff line change
@@ -168,10 +168,10 @@ 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);
}
}
}

0 comments on commit ffe4d81

Please sign in to comment.