mmmorris1975 / ssm-session-client

A golang implementation of the protocol used with AWS SSM sessions
MIT License
40 stars 21 forks source link

Fix number of bugs in datachannel.WriteTo #9

Closed YairHalberstadt closed 1 year ago

YairHalberstadt commented 1 year ago
  1. WriteTo should not return EOF (see https://github.com/golang/go/issues/44411).
  2. In case of EOF, WriteTo should write the final payload before returning
  3. In case of non EOF error, WriteTo should return n, not nw.
mmmorris1975 commented 1 year ago

Thank you!