Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. BUG: file descriptor leak in DHCPv6 (Richard Genoud)
----------------------------------------------------------------------
Message: 1
Date: Wed, 8 Nov 2017 16:41:03 +0100
From: Richard Genoud <[email protected]>
To: [email protected]
Subject: BUG: file descriptor leak in DHCPv6
Message-ID:
<cacq1gagvx_ixhdpssbbyho_8vougxhty80yfehvxxran1sv...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hi all,
I found a bug in connman, leading to a "too many open files" error.
( version used : 1.35 )
Here are the steps to reproduce.
On a shell, do :
while [ true ]; do ls -l /proc/$(pidof connmand)/fd/ | wc -l ; sleep 1; done
This will monitor the number of opened files/sockets of connmand.
Start connman with nothing else that ethernet connection (DHCP
client), on a network with a DHCPv4 server (this is important)
Then, plug / unplug several times the ethernet cable (every 2 seconds,
ten times should suffice)
The number of opened file descriptors should increase and increase.
The things I know :
- I can NOT reproduce it if there's no DHCPv4 server on the subnet and
connman is configured as DHCP client
- I can reproduce it configuring connman with a static IPv4
- If I add IPv6=off in the wired service, there's no more fd leak.
Trying to debug that, I found that it seems to be the file descriptor :
dhcp_client->listener_sockfd related to DHCPv6
that is not closed when the ethernet link goes down.
regards,
Richard.
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 25, Issue 4
**************************************