Commit graph

2 commits

Author SHA1 Message Date
Wim Taymans
833168c3cf fdmanager: decrement object refcount correctly
The object needs to be decremented each time a client releases it.
2016-04-13 13:01:33 +02:00
Wim Taymans
ae5d26e049 fdmanager: add global object manager
Add a global object that can be used to track outstanding fds for a
client. This can later also be used to limit the number of fds per
client.
Use this in the payloader to track fds. This makes it possible to track
the fds even when the client reconnects.
Set the client patch on the socket so that we can use it to track the
fds we sent to this client.
When the client disappears, release all outstanding fds.
2016-04-08 16:50:01 +02:00