Add more MSG_OOB tests for EventHandler
authorPetr Lapukhov <petr@fb.com>
Sat, 31 Dec 2016 00:11:41 +0000 (16:11 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 31 Dec 2016 00:17:54 +0000 (16:17 -0800)
commite1a15f9600e77c094dc368cb5dbe1c2ecd3dcb4f
treed729b1be59d6bab98d8b755ef82f53f03f415732
parent67f7bb722a46b2e7226a73aae0ce803df8444efd
Add more MSG_OOB tests for EventHandler

Summary:
Sending OOB messages allows for single byte to be sent truly out of band and placed in an OOB buffer. This byte can then be read (by default) independent from normal data.

The two test-cases validate that

(1) We can receive OOB and normal data on same socket
(2) Sending OOB byte does not affect regular data

NOTE: sending more than one byte usually means the OOB data interleaved with regular data.

Reviewed By: alandau

Differential Revision: D4370652

fbshipit-source-id: a573dae7e5afba5a4a410be5371faf4f065c74e9
folly/io/async/test/EventHandlerTest.cpp