shared ptr vector sockets
authorDave Watson <davejwatson@fb.com>
Fri, 3 Apr 2015 20:07:13 +0000 (13:07 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Fri, 10 Apr 2015 03:34:00 +0000 (20:34 -0700)
commitbd0960873af1941bc31d19a1a80a476fb01cfb31
tree8e147e24f2ce1c14c6b4bccc1eefbeea471dfdb0
parent9c19d342f183828bdde591258cf00d6de0981dcb
shared ptr vector sockets

Summary: promote the sockets vector to a shared_ptr, since both ServerWorkerPool and ServerBootstrap use it.  Otherwise there are destruction order issues between ServerBootstrap and any IOThreadPoolExecutor you use

Test Plan: Saw use after free in D1942242, gone after this.

Reviewed By: yfeldblum@fb.com

Subscribers: chalfant, doug, fugalh, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1947553

Signature: t1:1947553:1427484417:5b78f5c9c70d244d3f52a6f71b6d1fab7b29d106
folly/wangle/bootstrap/ServerBootstrap-inl.h
folly/wangle/bootstrap/ServerBootstrap.cpp
folly/wangle/bootstrap/ServerBootstrap.h