Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a maximum packet size of 32768 bytes for version and cleartext packets #49

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Joannis
Copy link
Contributor

@Joannis Joannis commented Nov 20, 2020

I think the packet size should be a bit larger than the minimum requirement of 2^15 specified by SSH's RFC. I'd like to add some tests to this, and admittedly didn't test this at all. Before continuing I want to discuss a few questions first:

  1. Should the maximum capacity be customizable?
  2. What's a sane but not overly optimistic maximum? I was thinking in the ballpark of 2^16 or 2^17.

…ckets - including those wrapping encrypted packets
@Lukasa
Copy link
Contributor

Lukasa commented Nov 20, 2020

Should the maximum capacity be customizable?

Yes, I think so.

What's a sane but not overly optimistic maximum? I was thinking in the ballpark of 2^16 or 2^17.

2^17 seems reasonable.

@Joannis
Copy link
Contributor Author

Joannis commented Dec 21, 2020

@Lukasa how do you suggest passing the customisability down to the parser?

@Lukasa
Copy link
Contributor

Lukasa commented Dec 21, 2020

Ideally the keys should know how to parse their own wire format, so that part isn’t too rough. The bigger issue is ensuring that we can dispatch to the right key type. We’ll likely need a place that users can register custom keys such that they can register their key identifiers.

The bigger wrinkle is that some keys will trigger completely different user authentication flows. That needs some more consideration: we may need to allow users to plug in entirely separate user auth state machines, which is gonna be a bit of a tricky ask.

@Joannis Joannis marked this pull request as ready for review February 26, 2021 18:27
@Joannis
Copy link
Contributor Author

Joannis commented Feb 26, 2021

@Lukasa I forgot about this branch, but just checked up on Swift-NIO-SSH in general and noticed them open. Can we merge this without customisability? And if not, how do we plan to tackle that?

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should definitely add customisability, as well as tests that validate that we're appropriately enforcing this. I think the best way to add it is to add fields to the configuration objects.

// Prevent the consumed bytes for a version from exceeding the maximum packet size
// In practice, if SSH version packets come anywhere near this it's already likely an attack
// More data cannot be blindly regarded as malicious though, since these might be multiple packets
let maximumVersionSize = min(slice.endIndex, self.maximumPacketSize)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ByteBufferView is not necessarily zero-indexed, so self.maximumPacketSize has to be translated into index-space first. I think this should be let maxIndex = slice.index(slice.startIndex, offsetBy: min(slice.count, self.maximumPacketSize)).

@Joannis
Copy link
Contributor Author

Joannis commented Nov 14, 2021

@Lukasa while allowing users to configure the maximum packet size, shouldn't we still manually restrict the version size?

@Lukasa
Copy link
Contributor

Lukasa commented Nov 15, 2021

Yup, I think so.

@Joannis Joannis requested a review from Lukasa November 16, 2021 15:51
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, this is looking really good! A few notes in the diff.

Sources/NIOSSH/NIOSSHError.swift Outdated Show resolved Hide resolved
Sources/NIOSSH/SSHPacketParser.swift Outdated Show resolved Hide resolved
Sources/NIOSSH/SSHPacketParser.swift Outdated Show resolved Hide resolved
Sources/NIOSSH/SSHPacketParser.swift Outdated Show resolved Hide resolved
Joannis Orlandos added 2 commits November 23, 2021 17:36
@Joannis Joannis requested a review from Lukasa November 23, 2021 16:40
@Joannis
Copy link
Contributor Author

Joannis commented Nov 25, 2021

@Lukasa any idea what's failing? I can't see the build output

@Lukasa
Copy link
Contributor

Lukasa commented Nov 25, 2021

Test Suite 'ChildChannelMultiplexerTests' started at 2021-11-23 16:41:26.214
Test Case 'ChildChannelMultiplexerTests.testAutoReadOnChildChannel' started at 2021-11-23 16:41:26.214
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testAutoReadOnChildChannel : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testAutoReadOnChildChannel : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testAutoReadOnChildChannel' failed (0.002 seconds)
Test Case 'ChildChannelMultiplexerTests.testBasicInboundChannelCreation' started at 2021-11-23 16:41:26.216
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testBasicInboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testBasicInboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testBasicInboundChannelCreation' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testBetterOutboundChannelCreation' started at 2021-11-23 16:41:26.216
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testBetterOutboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testBetterOutboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testBetterOutboundChannelCreation' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testCannotOpenNewChannelAfterDroppingDelegate' started at 2021-11-23 16:41:26.217
Test Case 'ChildChannelMultiplexerTests.testCannotOpenNewChannelAfterDroppingDelegate' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testChildChannelMaxMessageLengthOption' started at 2021-11-23 16:41:26.217
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testChildChannelMaxMessageLengthOption : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testChildChannelMaxMessageLengthOption : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testChildChannelMaxMessageLengthOption' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testChildChannelSupportsSyncOptions' started at 2021-11-23 16:41:26.217
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testChildChannelSupportsSyncOptions : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testChildChannelSupportsSyncOptions : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testChildChannelSupportsSyncOptions' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testCloseBeforeActiveOnOutboundChannelWhenReceivingFailure' started at 2021-11-23 16:41:26.218
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testCloseBeforeActiveOnOutboundChannelWhenReceivingFailure : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testCloseBeforeActiveOnOutboundChannelWhenReceivingFailure : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testCloseBeforeActiveOnOutboundChannelWhenReceivingFailure' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt' started at 2021-11-23 16:41:26.218
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testClosingClosedChannelsDoesntHurt' failed (0.002 seconds)
Test Case 'ChildChannelMultiplexerTests.testClosingInputRejected' started at 2021-11-23 16:41:26.220
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testClosingInputRejected : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testClosingInputRejected : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testClosingInputRejected' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testDuplicateCloseFails' started at 2021-11-23 16:41:26.221
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testDuplicateCloseFails : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testDuplicateCloseFails : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testDuplicateCloseFails' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testEOFIsReceivedInOrder' started at 2021-11-23 16:41:26.221
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testEOFIsReceivedInOrder : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testEOFIsReceivedInOrder : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testEOFIsReceivedInOrder' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testEOFIsSentInOrder' started at 2021-11-23 16:41:26.222
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testEOFIsSentInOrder : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testEOFIsSentInOrder : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testEOFIsSentInOrder' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testEOFQueuesWithReads' started at 2021-11-23 16:41:26.223
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testEOFQueuesWithReads : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testEOFQueuesWithReads : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testEOFQueuesWithReads' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testErrorGracePeriod' started at 2021-11-23 16:41:26.223
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testErrorGracePeriod : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testErrorGracePeriod : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testErrorGracePeriod' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testFailingOutboundChannelInitializerDoesNotDoIO' started at 2021-11-23 16:41:26.224
Test Case 'ChildChannelMultiplexerTests.testFailingOutboundChannelInitializerDoesNotDoIO' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testLocalChildChannelsAlwaysGetTheRightChannelType' started at 2021-11-23 16:41:26.224
Test Case 'ChildChannelMultiplexerTests.testLocalChildChannelsAlwaysGetTheRightChannelType' passed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testMultiplexerDropsWritesAfterItLosesTheHandler' started at 2021-11-23 16:41:26.225
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testMultiplexerDropsWritesAfterItLosesTheHandler : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testMultiplexerDropsWritesAfterItLosesTheHandler : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testMultiplexerDropsWritesAfterItLosesTheHandler' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testMultiplexerRejectsInboundMessagesForUnknownChannels' started at 2021-11-23 16:41:26.225
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testMultiplexerRejectsInboundMessagesForUnknownChannels : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testMultiplexerRejectsInboundMessagesForUnknownChannels : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testMultiplexerRejectsInboundMessagesForUnknownChannels' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testNoDataLossOnChannelClose' started at 2021-11-23 16:41:26.226
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testNoDataLossOnChannelClose : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testNoDataLossOnChannelClose : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testNoDataLossOnChannelClose' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testOutboundChannelCreation' started at 2021-11-23 16:41:26.226
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testOutboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testOutboundChannelCreation : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testOutboundChannelCreation' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testParentChannelInactiveDisablesChildChannels' started at 2021-11-23 16:41:26.227
Test Case 'ChildChannelMultiplexerTests.testParentChannelInactiveDisablesChildChannels' passed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponse' started at 2021-11-23 16:41:26.228
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponse : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponse : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponse' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponseOnFailure' started at 2021-11-23 16:41:26.228
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponseOnFailure : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponseOnFailure : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testPromiseCompletionDelaysUntilResponseOnFailure' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testReadsAreDelayedUntilRead' started at 2021-11-23 16:41:26.228
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testReadsAreDelayedUntilRead : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testReadsAreDelayedUntilRead : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testReadsAreDelayedUntilRead' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testRejectInboundChannelCreation' started at 2021-11-23 16:41:26.229
Test Case 'ChildChannelMultiplexerTests.testRejectInboundChannelCreation' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testRemotelyCreatedChildChannelsGetTheRightChannelType' started at 2021-11-23 16:41:26.230
Test Case 'ChildChannelMultiplexerTests.testRemotelyCreatedChildChannelsGetTheRightChannelType' passed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testRespectingMaxMessageSize' started at 2021-11-23 16:41:26.230
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testRespectingMaxMessageSize : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testRespectingMaxMessageSize : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testRespectingMaxMessageSize' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testRespectingMaxMessageSizeOnOutboundChannel' started at 2021-11-23 16:41:26.232
Test Case 'ChildChannelMultiplexerTests.testRespectingMaxMessageSizeOnOutboundChannel' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testSimpleOutboundFlowControlManagement' started at 2021-11-23 16:41:26.232
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testSimpleOutboundFlowControlManagement : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testSimpleOutboundFlowControlManagement : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testSimpleOutboundFlowControlManagement' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testTCPCloseBeforeInitializer' started at 2021-11-23 16:41:26.233
Test Case 'ChildChannelMultiplexerTests.testTCPCloseBeforeInitializer' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingChannelSetup' started at 2021-11-23 16:41:26.233
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingChannelSetup : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingChannelSetup : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingChannelSetup' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingInitializer' started at 2021-11-23 16:41:26.234
Test Case 'ChildChannelMultiplexerTests.testTCPCloseWhileAwaitingInitializer' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testUserOutboundEventsAreQueuedUntilActivity' started at 2021-11-23 16:41:26.234
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testUserOutboundEventsAreQueuedUntilActivity : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testUserOutboundEventsAreQueuedUntilActivity : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testUserOutboundEventsAreQueuedUntilActivity' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testWeCorrectlySpotWindowSizesOfInboundChannels' started at 2021-11-23 16:41:26.235
Test Case 'ChildChannelMultiplexerTests.testWeCorrectlySpotWindowSizesOfInboundChannels' passed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly' started at 2021-11-23 16:41:26.235
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1203: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("2") is not equal to ("1") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1207: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("2") is not equal to ("1") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1212: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("2") is not equal to ("1") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:322: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : failed - Unexpected message: Optional(NIOSSH.SSHMessage.channelClose(NIOSSH.SSHMessage.ChannelCloseMessage(recipientChannel: 1)))
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1226: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("2") is not equal to ("3") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:322: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : failed - Unexpected message: Optional(NIOSSH.SSHMessage.channelClose(NIOSSH.SSHMessage.ChannelCloseMessage(recipientChannel: 1)))
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1231: error: ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly : XCTAssertEqual failed: ("2") is not equal to ("4") - 
Test Case 'ChildChannelMultiplexerTests.testWeDealWithFlowControlProperly' failed (0.049 seconds)
Test Case 'ChildChannelMultiplexerTests.testWeDontResizeTheWindowOnClose' started at 2021-11-23 16:41:26.284
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testWeDontResizeTheWindowOnClose : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testWeDontResizeTheWindowOnClose : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:1265: error: ChildChannelMultiplexerTests.testWeDontResizeTheWindowOnClose : XCTAssertEqual failed: ("2") is not equal to ("1") - 
Test Case 'ChildChannelMultiplexerTests.testWeDontResizeTheWindowOnClose' failed (0.001 seconds)
Test Case 'ChildChannelMultiplexerTests.testWeRejectExcessiveWindowSizes' started at 2021-11-23 16:41:26.284
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:249: error: ChildChannelMultiplexerTests.testWeRejectExcessiveWindowSizes : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:250: error: ChildChannelMultiplexerTests.testWeRejectExcessiveWindowSizes : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testWeRejectExcessiveWindowSizes' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testWriteAfterEOFFails' started at 2021-11-23 16:41:26.285
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testWriteAfterEOFFails : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testWriteAfterEOFFails : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testWriteAfterEOFFails' failed (0.0 seconds)
Test Case 'ChildChannelMultiplexerTests.testWritesAreQueuedUntilActivity' started at 2021-11-23 16:41:26.285
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:234: error: ChildChannelMultiplexerTests.testWritesAreQueuedUntilActivity : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
/code/Tests/NIOSSHTests/ChildChannelMultiplexerTests.swift:235: error: ChildChannelMultiplexerTests.testWritesAreQueuedUntilActivity : XCTAssertEqual failed: ("131072") is not equal to ("16777216") - 
Test Case 'ChildChannelMultiplexerTests.testWritesAreQueuedUntilActivity' failed (0.001 seconds)
Test Suite 'ChildChannelMultiplexerTests' failed at 2021-11-23 16:41:26.286
	 Executed 39 tests, with 74 failures (0 unexpected) in 0.071 (0.071) seconds
Test Suite 'EndToEndTests' started at 2021-11-23 16:41:26.286
Test Case 'EndToEndTests.testChannelRejectsHugePacketsRequests' started at 2021-11-23 16:41:26.286
/code/Tests/NIOSSHTests/EndToEndTests.swift:276: error: EndToEndTests.testChannelRejectsHugePacketsRequests : XCTAssertThrowsError failed: did not throw error - 
Test Case 'EndToEndTests.testChannelRejectsHugePacketsRequests' failed (0.03 seconds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants