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

build/fix buildtools #343

Merged
merged 8 commits into from
Aug 4, 2022
Merged

build/fix buildtools #343

merged 8 commits into from
Aug 4, 2022

Conversation

nikoksr
Copy link
Owner

@nikoksr nikoksr commented Aug 4, 2022

Description

Slight cleanup of the repo, fixed linter errors and buildtool problems.

Also updated go module from v1.17 to 1.19.

Motivation and Context

Automatic PRs were broken due to linter issues.

How Has This Been Tested?

Ran 'make test' and used the library in a separate project. Messages were sent
out successfully.

Screenshots / Output (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Add setup command to make installing of dependencies explicit.
WaitForOneOffVerification now uses a ReadHeaderTimeout of 20 seconds by
default. This is to avoid potential slow loris attacks which means
blocking a connection for too long. In case that the user wants to
provide a custom timeout, I added the
WaitForOneOffVerificationWithServer method. It works identical to
WaitForOneOffVerification with the subtle difference that the user can
pass in a fully customized http.Server instance.

This closes gosec G112.
@nikoksr nikoksr merged commit 214ca83 into main Aug 4, 2022
@nikoksr nikoksr deleted the build/fix-buildtools branch August 4, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant