Skip to content

Commit

Permalink
runtime/net_server: fix PCB filter
Browse files Browse the repository at this point in the history
sbourdeauducq committed Dec 17, 2015
1 parent 80172f9 commit b3abc9b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions artiq/runtime/net_server.c
Original file line number Diff line number Diff line change
@@ -220,13 +220,9 @@ void net_server_service(void)
{
struct tcp_pcb *pcb;

/*
* Assume all active TCP PCBs with a non-NULL arg are our connections.
* lwip defines "active PCB" as being able to send/receive data.
*/
pcb = tcp_active_pcbs;
while(pcb) {
if(pcb->callback_arg)
if(pcb->recv == net_server_recv) /* filter our connections */
tcp_pcb_service(pcb->callback_arg, pcb);
pcb = pcb->next;
}

0 comments on commit b3abc9b

Please sign in to comment.