Skip to content

Commit 177812f

Browse files
authored
Merge pull request #49 from sshnet/develop
Prepare for beta 3
2 parents 75f6911 + d71baa1 commit 177812f

File tree

4 files changed

+10
-22
lines changed

4 files changed

+10
-22
lines changed

src/Renci.SshNet.NETCore/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"configurations": {
44
"debug": {
55
"buildOptions": {
6-
"debugType": "full",
6+
"debugType": "portable",
77
"define": [ "DEBUG", "TRACE" ]
88
}
99
},
+6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
22
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=AutoPropertyCanBeMadeGetOnly_002ELocal/@EntryIndexedValue">DO_NOT_SHOW</s:String>
33
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertIfStatementToConditionalTernaryExpression/@EntryIndexedValue">DO_NOT_SHOW</s:String>
4+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertIfStatementToNullCoalescingExpression/@EntryIndexedValue">DO_NOT_SHOW</s:String>
45
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertPropertyToExpressionBody/@EntryIndexedValue">DO_NOT_SHOW</s:String>
56
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToAutoProperty/@EntryIndexedValue">DO_NOT_SHOW</s:String>
67
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBeMadeStatic_002ELocal/@EntryIndexedValue">SUGGESTION</s:String>
78
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UnusedParameter_002ELocal/@EntryIndexedValue">WARNING</s:String>
89
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseNameofExpression/@EntryIndexedValue">DO_NOT_SHOW</s:String>
910
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseNullPropagation/@EntryIndexedValue">DO_NOT_SHOW</s:String>
1011
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=UseStringInterpolation/@EntryIndexedValue">DO_NOT_SHOW</s:String>
12+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_ARGUMENT/@EntryValue">True</s:Boolean>
13+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">True</s:Boolean>
14+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PARAMETER/@EntryValue">True</s:Boolean>
15+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INITIALIZER_BRACES/@EntryValue">NEXT_LINE_SHIFTED_2</s:String>
16+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_ARGUMENTS_STYLE/@EntryValue">CHOP_IF_LONG</s:String>
1117
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=HMACMD/@EntryIndexedValue">HMACMD</s:String>
1218
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=HMACSHA/@EntryIndexedValue">HMACSHA</s:String>
1319
<s:String x:Key="/Default/Environment/UnitTesting/ExcludedCategoriesList/@EntryValue">integration,LongRunning</s:String></wpf:ResourceDictionary>

src/Renci.SshNet/ForwardedPortLocal.NET.cs

+1-18
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,7 @@ partial void InternalStart()
3232
// consider port started when we're listening for inbound connections
3333
_status = ForwardedPortStatus.Started;
3434

35-
try
36-
{
37-
StartAccept(null);
38-
}
39-
catch (ObjectDisposedException)
40-
{
41-
// AcceptAsync will throw an ObjectDisposedException when the server is closed before
42-
// the listener has started accepting connections.
43-
//
44-
// this is only possible when the listener is stopped (from another thread) right
45-
// after it was started.
46-
StopPort(Session.ConnectionInfo.Timeout);
47-
}
48-
catch (Exception ex)
49-
{
50-
StopPort(Session.ConnectionInfo.Timeout);
51-
RaiseExceptionEvent(ex);
52-
}
35+
StartAccept(null);
5336
}
5437

5538
private void StartAccept(SocketAsyncEventArgs e)

src/Renci.SshNet/ForwardedPortLocal.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ protected override void StopPort(TimeSpan timeout)
131131

132132
// signal existing channels that the port is closing
133133
base.StopPort(timeout);
134+
// prevent new requests from getting processed
135+
StopListener();
134136
// wait for open channels to close
135137
InternalStop(timeout);
136-
// prevent new requests from getting processed before we signal existing
137-
// channels that the port is closing
138-
StopListener();
139138
// mark port stopped
140139
_status = ForwardedPortStatus.Stopped;
141140
}

0 commit comments

Comments
 (0)