Merge "Force creation of Socket upon Transform application" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e7e135c3ad
@@ -337,6 +337,9 @@ public final class IpSecManager {
|
||||
*/
|
||||
public void applyTransportModeTransform(@NonNull Socket socket,
|
||||
@PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException {
|
||||
// Ensure creation of FD. See b/77548890 for more details.
|
||||
socket.getSoLinger();
|
||||
|
||||
applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform);
|
||||
}
|
||||
|
||||
@@ -441,6 +444,9 @@ public final class IpSecManager {
|
||||
* @throws IOException indicating that the transform could not be removed from the socket
|
||||
*/
|
||||
public void removeTransportModeTransforms(@NonNull Socket socket) throws IOException {
|
||||
// Ensure creation of FD. See b/77548890 for more details.
|
||||
socket.getSoLinger();
|
||||
|
||||
removeTransportModeTransforms(socket.getFileDescriptor$());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user