Handler::getContext() when possible
authorJames Sedgwick <jsedgwick@fb.com>
Mon, 27 Apr 2015 19:24:25 +0000 (12:24 -0700)
committerAndrii Grynenko <andrii@fb.com>
Wed, 29 Apr 2015 22:56:45 +0000 (15:56 -0700)
commitdda97e8e969c34c4a10de1e26199fa926c0ae731
tree3866ad376425deb734cd7a67d906bbe86acfa3c6
parent9eed30ddfdcc53b0d17fa72299ea96cde16cc52b
Handler::getContext() when possible

Summary:
Only allow this if the handler is only ever attached to a single pipeline once. i.e. only ever associated with one Context

Test Plan: unit, thrift unit

Reviewed By: davejwatson@fb.com

Subscribers: fugalh, alandau, bmatheny, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2024007

Tasks: 6836580

Signature: t1:2024007:1430157264:efcf70ca3531c10eec5d458c9e9d6cda60c507c3
folly/wangle/channel/AsyncSocketHandler.h
folly/wangle/channel/Handler.h
folly/wangle/channel/HandlerContext.h
folly/wangle/channel/OutputBufferingHandler.h
folly/wangle/channel/test/PipelineTest.cpp