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

[MS-SMB] System.InvalidOperationException: unexpected end of channel stream: expected 1 more byte #132

Closed
tymok opened this issue Dec 26, 2017 · 2 comments

Comments

@tymok
Copy link

tymok commented Dec 26, 2017

Hello.

I got some error messages while running MS-SMB testsuites.
With the test result, I found that many exceptions "System.InvalidOperationException: unexpected end of channel stream: expected 1 more byte(s)" occured with my SMB server implementation.
Could you check and inform why the error occured and what it means?
USER_DRIVER 2017-12-26 14_35_53.zip

Best Regards,
Taeyang Mok

@chenlu0616
Copy link
Member

Hi, Taeyang

I looked into the errors and it seems that the exception is thrown because the test suite SDK failed to decode SMB Negotiate response packet returned by your SMB server, and the response should contain one more byte as the SDK expects while reading the stream, thus the assertion here failed.

Since I cannot debug to get more information, here I have the windows network capture for "TraditionalTestCase_Disconnect_14_Case

", which run pass on the windows test environment, you can take it as a reference to see the message differences
TraditionalTestCase_Disconnect_14_Case.matp.zip
. Capture with Microsoft Message Analyzer which you can download from website.

Thanks,
Lu

@yazeng
Copy link
Member

yazeng commented Jun 27, 2018

Close this issue since no response for a long time.

@yazeng yazeng closed this as completed Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants