increase writeLen for tests that want to trigger buffering
authorNathan Bronson <ngbronson@fb.com>
Wed, 7 Dec 2016 19:20:21 +0000 (11:20 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 7 Dec 2016 19:23:32 +0000 (11:23 -0800)
commita4e480b2397b3c62d036ad75e5fe42a8343ddaed
tree84a71ef4e4926880aa61292a8a6e7e7e6203e60e
parent9b816e8962112104f06a0bd59721e3750222bc18
increase writeLen for tests that want to trigger buffering

Summary:
Freshly opened TCP sockets can have a send buffer size bigger
than wmem_default, because connection parameters are cached in the
route cache.  Some of the async socket tests assumed that writing 8M of
data was enough to guarantee blocking behavior, but since wmem_max is
20M on our systems the resulting tests are flaky.

Reviewed By: marcinpe

Differential Revision: D4292201

fbshipit-source-id: ba5d606d080330e455eee2b17bcae6cf546bf981
folly/io/async/test/AsyncSocketTest2.cpp