Correct getsockopt call made by AsyncSocket
authorAndre Pinto <aap@fb.com>
Thu, 4 Dec 2014 19:52:53 +0000 (11:52 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 16:00:32 +0000 (08:00 -0800)
commit44e48457cd329fe0a467c5bf9a8b8d514c8e6e0d
tree8129717e2ec78c1b6b6f1aad8c09667242087ee0
parent35ed5364f1ba809d6d103c98c03ae951aab3bc05
Correct getsockopt call made by AsyncSocket

Summary:
The getsockopt's last parameter (optlen) is a value-result parameter
and AsyncSocket::getSockOpt was passing a value as argument.

Test Plan: Unit tests

Reviewed By: alikhtarov@fb.com

Subscribers: trunkagent, njormrod, folly-diffs@

FB internal diff: D1717463

Tasks: 4867290

Signature: t1:1717463:1417664828:6c7a74ff31725121f892ce1adba2653e70728192
folly/io/async/AsyncSocket.h
folly/io/async/test/AsyncSocketTest.cpp [new file with mode: 0644]