connection: make conn_reply ref-counted
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 11:56:35 +0000 (13:56 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 11:56:35 +0000 (13:56 +0200)
commit81e9805cd01c95fa6ed9aeff338de2b856add414
tree1d62326588761ab093be95f76f81766e86bb7d6c
parenta294471d420459179a073857221b50c036aed025
connection: make conn_reply ref-counted

conn_reply objects are used all over the place. We often pass pointers
around without actually holding the parent lock. They might get destructed
while we use it. To avoid this, make it ref-counted so there's no need to
constantly hold locks..

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c