You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Greg Mann <gr...@mesosphere.io> on 2017/01/11 23:10:47 UTC

Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/
-----------------------------------------------------------

(Updated Jan. 11, 2017, 11:10 p.m.)


Review request for mesos and Greg Mann.


Repository: mesos


Description
-------

Fixed SSL socket 'shutdown()'.


Diffs (updated)
-----

  3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
  3rdparty/libprocess/src/libevent_ssl_socket.hpp 57eaf4f607d0628db466cc1a139772eeeaa51136 
  3rdparty/libprocess/src/libevent_ssl_socket.cpp dddd0e292a8b0d470f4e199db08f09a0c863d73c 

Diff: https://reviews.apache.org/r/55343/diff/


Testing
-------


Thanks,

Greg Mann


Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

Posted by Mesos ReviewBot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/#review161330
-----------------------------------------------------------



Bad review!

Reviews applied: [55343, 53803]

Error:
Circular dependency detected for review 53803.Please fix the 'depends_on' field.

- Mesos ReviewBot


On Jan. 11, 2017, 11:10 p.m., Greg Mann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55343/
> -----------------------------------------------------------
> 
> (Updated Jan. 11, 2017, 11:10 p.m.)
> 
> 
> Review request for mesos and Greg Mann.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Fixed SSL socket 'shutdown()'.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
>   3rdparty/libprocess/src/libevent_ssl_socket.hpp 57eaf4f607d0628db466cc1a139772eeeaa51136 
>   3rdparty/libprocess/src/libevent_ssl_socket.cpp dddd0e292a8b0d470f4e199db08f09a0c863d73c 
> 
> Diff: https://reviews.apache.org/r/55343/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Greg Mann
> 
>


Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

Posted by Joseph Wu <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/#review161626
-----------------------------------------------------------


Ship it!




I can tweak this before committing.


3rdparty/libprocess/src/libevent_ssl_socket.hpp (lines 53 - 56)
<https://reviews.apache.org/r/55343/#comment232889>

    I'd reword this a bit as a `NOTE` as ignoring the `how` parameter might be a significant detail.



3rdparty/libprocess/src/libevent_ssl_socket.cpp 
<https://reviews.apache.org/r/55343/#comment232884>

    We should keep this comment around.


- Joseph Wu


On Jan. 13, 2017, 11:19 a.m., Greg Mann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55343/
> -----------------------------------------------------------
> 
> (Updated Jan. 13, 2017, 11:19 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Joseph Wu.
> 
> 
> Bugs: MESOS-6789
>     https://issues.apache.org/jira/browse/MESOS-6789
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Recently, a change was made to the signature of
> `Socket::shutdown`, but the corresponding override in
> `LibeventSSLSocketImpl` was not updated, so that the
> implementation-specific method is no longer being
> executed. Further, the SSL socket's `shutdown` code
> did not actually shutdown the socket; rather, the
> shutdown was performed in the destructor.
> 
> This patch updates the function's signature to match
> that of the base class's method, adds the `override`
> specifier to the implemention's method declaration,
> and updates the function to properly shutdown the
> SSL socket.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
>   3rdparty/libprocess/src/libevent_ssl_socket.hpp 65da091155107d77bdf7b003609ab3770f80083a 
>   3rdparty/libprocess/src/libevent_ssl_socket.cpp b0319b2d3694f600190615ba6d29b95b1d8f2405 
> 
> Diff: https://reviews.apache.org/r/55343/diff/
> 
> 
> Testing
> -------
> 
> `3rdparty/libprocess/libprocess-tests --gtest_filter="Encryption/NetSocketTest.EOFBeforeRecv/0:Encryption/NetSocketTest.EOFAfterRecv/0" --gtest_repeat=-1 --gtest_break_on_failure`
> 
> NOTE: currently the above command exposes a file descriptor leak related to the SSL socket.
> 
> 
> Thanks,
> 
> Greg Mann
> 
>


Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/
-----------------------------------------------------------

(Updated Jan. 13, 2017, 7:19 p.m.)


Review request for mesos, Benjamin Hindman and Joseph Wu.


Bugs: MESOS-6789
    https://issues.apache.org/jira/browse/MESOS-6789


Repository: mesos


Description
-------

Recently, a change was made to the signature of
`Socket::shutdown`, but the corresponding override in
`LibeventSSLSocketImpl` was not updated, so that the
implementation-specific method is no longer being
executed. Further, the SSL socket's `shutdown` code
did not actually shutdown the socket; rather, the
shutdown was performed in the destructor.

This patch updates the function's signature to match
that of the base class's method, adds the `override`
specifier to the implemention's method declaration,
and updates the function to properly shutdown the
SSL socket.


Diffs (updated)
-----

  3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
  3rdparty/libprocess/src/libevent_ssl_socket.hpp 65da091155107d77bdf7b003609ab3770f80083a 
  3rdparty/libprocess/src/libevent_ssl_socket.cpp b0319b2d3694f600190615ba6d29b95b1d8f2405 

Diff: https://reviews.apache.org/r/55343/diff/


Testing
-------

`3rdparty/libprocess/libprocess-tests --gtest_filter="Encryption/NetSocketTest.EOFBeforeRecv/0:Encryption/NetSocketTest.EOFAfterRecv/0" --gtest_repeat=-1 --gtest_break_on_failure`

NOTE: currently the above command exposes a file descriptor leak related to the SSL socket.


Thanks,

Greg Mann


Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/
-----------------------------------------------------------

(Updated Jan. 12, 2017, 1:02 a.m.)


Review request for mesos, Benjamin Hindman and Joseph Wu.


Bugs: MESOS-6789
    https://issues.apache.org/jira/browse/MESOS-6789


Repository: mesos


Description
-------

Recently, a change was made to the signature of
`Socket::shutdown`, but the corresponding override in
`LibeventSSLSocketImpl` was not updated, so that the
implementation-specific method is no longer being
executed. Further, the SSL socket's `shutdown` code
did not actually shutdown the socket; rather, the
shutdown was performed in the destructor.

This patch updates the function's signature to match
that of the base class's method, adds the `override`
specifier to the implemention's method declaration,
and updates the function to properly shutdown the
SSL socket.


Diffs
-----

  3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
  3rdparty/libprocess/src/libevent_ssl_socket.hpp 57eaf4f607d0628db466cc1a139772eeeaa51136 
  3rdparty/libprocess/src/libevent_ssl_socket.cpp dddd0e292a8b0d470f4e199db08f09a0c863d73c 

Diff: https://reviews.apache.org/r/55343/diff/


Testing (updated)
-------

`3rdparty/libprocess/libprocess-tests --gtest_filter="Encryption/NetSocketTest.EOFBeforeRecv/0:Encryption/NetSocketTest.EOFAfterRecv/0" --gtest_repeat=-1 --gtest_break_on_failure`

NOTE: currently the above command exposes a file descriptor leak related to the SSL socket.


Thanks,

Greg Mann


Re: Review Request 55343: Fixed SSL socket 'shutdown()'.

Posted by Greg Mann <gr...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55343/
-----------------------------------------------------------

(Updated Jan. 12, 2017, 12:57 a.m.)


Review request for mesos, Benjamin Hindman and Joseph Wu.


Bugs: MESOS-6789
    https://issues.apache.org/jira/browse/MESOS-6789


Repository: mesos


Description (updated)
-------

Recently, a change was made to the signature of
`Socket::shutdown`, but the corresponding override in
`LibeventSSLSocketImpl` was not updated, so that the
implementation-specific method is no longer being
executed. Further, the SSL socket's `shutdown` code
did not actually shutdown the socket; rather, the
shutdown was performed in the destructor.

This patch updates the function's signature to match
that of the base class's method, adds the `override`
specifier to the implemention's method declaration,
and updates the function to properly shutdown the
SSL socket.


Diffs
-----

  3rdparty/libprocess/include/process/socket.hpp 87966155aa21328db51796b2ae0a883054c00457 
  3rdparty/libprocess/src/libevent_ssl_socket.hpp 57eaf4f607d0628db466cc1a139772eeeaa51136 
  3rdparty/libprocess/src/libevent_ssl_socket.cpp dddd0e292a8b0d470f4e199db08f09a0c863d73c 

Diff: https://reviews.apache.org/r/55343/diff/


Testing (updated)
-------

`bin/mesos-tests.sh --gtest_filter="Encryption/NetSocketTest.EOFBeforeRecv/0:Encryption/NetSocketTest.EOFAfterRecv/0" --gtest_repeat=-1 --gtest_break_on_failure`

NOTE: currently the above command exposes a file descriptor leak related to the SSL socket.


Thanks,

Greg Mann