Fix asan test crashes
authorSarang Masti <mssarang@fb.com>
Thu, 28 May 2015 23:12:21 +0000 (16:12 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 3 Jun 2015 16:51:27 +0000 (09:51 -0700)
commitb89b79d96fab7562a4cbd11c70df65bdf16b0a62
tree32737b329f13ad39212224daa8a8f3679fc97f2d
parent8900cad8f8156ab4228ee3ace06e998e56b4c0bb
Fix asan test crashes

Summary: We need to prevent the socket from being deleted while in the loopCallback.

Test Plan: --  fbconfig '--sanitize' 'address' 'folly/io/async/test' && fbmake runtests

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, folly-diffs@, yfeldblum, chalfant

FB internal diff: D2109031

Tasks: 7250307

Signature: t1:2109031:1432918801:77f0352254925d3f33f1e004c8bba89cde63e2cf

Blame Revision: D2102601
folly/io/async/AsyncSocket.h