-
Notifications
You must be signed in to change notification settings - Fork 2
IMD Server #119
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
base: main
Are you sure you want to change the base?
IMD Server #119
Conversation
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
| if self.sinfo.time: | ||
| buf_len += IMDHEADERSIZE + IMDTIMEPACKETLENGTH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if self.sinfo.time: | |
| buf_len += IMDHEADERSIZE + IMDTIMEPACKETLENGTH | |
| buf_len += int(self.sinfo.time) * (IMDHEADERSIZE + IMDTIMEPACKETLENGTH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This maybe an issue since sinfo.time >=1 as per the protocol. int(bool(self.sinfo.time)) might be a better option
| if self.sinfo.time: | |
| buf_len += IMDHEADERSIZE + IMDTIMEPACKETLENGTH | |
| buf_len += int(bool(self.sinfo.time)) * (IMDHEADERSIZE + IMDTIMEPACKETLENGTH) |
| if version == 2: | ||
| self._send_handshakeV2() | ||
| elif version == 3: | ||
| self._send_handshakeV3() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that you're checking version above. It still makes me squirm to have no else so I'd add assert 2 <= version <= 3, just in case the IMDVERSIONS get updated but nothing is done here.
|
@ljwoods2 - Is this built to handle |
Fixes #48
Changes made in this Pull Request:
PR Checklist