Re: [dpdk-dev] [PATCH] vhost: fix fd leaks for vhost-user server mode

2017-03-31 Thread Yuanhan Liu
On Mon, Mar 27, 2017 at 04:52:15PM +0800, Yuanhan Liu wrote: > A vhost-user server socket could have many connections, thus many connfd. > However, we currently just use one single int var to store it. Meaning, > it will get overwritten every time a new connection is created. > > While this will n

[dpdk-dev] [PATCH] vhost: fix fd leaks for vhost-user server mode

2017-03-27 Thread Yuanhan Liu
A vhost-user server socket could have many connections, thus many connfd. However, we currently just use one single int var to store it. Meaning, it will get overwritten every time a new connection is created. While this will not create fatal issue as it sounds (since the correct connfd is closure