Commit 84deeff0 authored by Marc Gravell's avatar Marc Gravell

oops, forgot to use the pipe options!

parent 4d7b5475
...@@ -835,7 +835,7 @@ private static LocalCertificateSelectionCallback GetAmbientCertificateCallback() ...@@ -835,7 +835,7 @@ private static LocalCertificateSelectionCallback GetAmbientCertificateCallback()
return null; return null;
} }
async ValueTask<SocketMode> ISocketCallback.ConnectedAsync(Socket socket, TextWriter log) async ValueTask<SocketMode> ISocketCallback.ConnectedAsync(Socket socket, TextWriter log, PipeOptions pipeOptions)
{ {
try try
{ {
...@@ -871,11 +871,11 @@ async ValueTask<SocketMode> ISocketCallback.ConnectedAsync(Socket socket, TextWr ...@@ -871,11 +871,11 @@ async ValueTask<SocketMode> ISocketCallback.ConnectedAsync(Socket socket, TextWr
Multiplexer.Trace("Encryption failure"); Multiplexer.Trace("Encryption failure");
return SocketMode.Abort; return SocketMode.Abort;
} }
pipe = StreamConnector.GetDuplex(ssl, name: Bridge.Name); pipe = StreamConnector.GetDuplex(ssl, pipeOptions, name: Bridge.Name);
} }
else else
{ {
pipe = SocketConnection.Create(socket, name: Bridge.Name); pipe = SocketConnection.Create(socket, pipeOptions, name: Bridge.Name);
} }
OnWrapForLogging(ref pipe, physicalName); OnWrapForLogging(ref pipe, physicalName);
......
...@@ -28,7 +28,8 @@ internal partial interface ISocketCallback ...@@ -28,7 +28,8 @@ internal partial interface ISocketCallback
/// </summary> /// </summary>
/// <param name="socket">The socket.</param> /// <param name="socket">The socket.</param>
/// <param name="log">A text logger to write to.</param> /// <param name="log">A text logger to write to.</param>
ValueTask<SocketMode> ConnectedAsync(Socket socket, TextWriter log); /// <param name="pipeOptions">Pipe configuration</param>
ValueTask<SocketMode> ConnectedAsync(Socket socket, TextWriter log, PipeOptions pipeOptions);
/// <summary> /// <summary>
/// Indicates that the socket has signalled an error condition /// Indicates that the socket has signalled an error condition
...@@ -274,7 +275,7 @@ private async void EndConnectImpl(IAsyncResult ar, ConnectionMultiplexer multipl ...@@ -274,7 +275,7 @@ private async void EndConnectImpl(IAsyncResult ar, ConnectionMultiplexer multipl
if (ignoreConnect) return; if (ignoreConnect) return;
socket.EndConnect(ar); socket.EndConnect(ar);
var socketMode = callback == null ? SocketMode.Abort : await callback.ConnectedAsync(socket, log); var socketMode = callback == null ? SocketMode.Abort : await callback.ConnectedAsync(socket, log, _pipeOptions);
switch (socketMode) switch (socketMode)
{ {
case SocketMode.Async: case SocketMode.Async:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment