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

dial: add DialContext function #10

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

DerekBum
Copy link

@DerekBum DerekBum commented Sep 28, 2023

In order to replace timeouts with contexts in Connect instance creation (go-tarantool), I need a DialContext function. It accepts context, and cancels, if context is canceled by user.

Disabled flaking CI Windows runner. Because we don't support connector on Windows, I considered disabling these tests.

Part of tarantool/go-tarantool#136

net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from bdadb81 to be9a218 Compare September 29, 2023 10:05
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch 5 times, most recently from 42ce539 to db9ed8f Compare September 29, 2023 11:50
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from db9ed8f to ae4549a Compare September 29, 2023 18:18
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net_test.go Outdated Show resolved Hide resolved
net_test.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch 2 times, most recently from 26d211b to a46839f Compare October 1, 2023 20:42
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
net_test.go Outdated Show resolved Hide resolved
net_test.go Outdated Show resolved Hide resolved
@oleg-jukovec
Copy link
Collaborator

Please, disable the windows runners (it is not our target platform or we need to fix tests on it).

@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch 2 times, most recently from f881d30 to b3ae863 Compare October 2, 2023 11:12
Copy link
Collaborator

@oleg-jukovec oleg-jukovec left a comment

Choose a reason for hiding this comment

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

Thank you for the patch!

net.go Outdated Show resolved Hide resolved
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from b3ae863 to 8201b31 Compare October 2, 2023 12:42
DerekBum added a commit that referenced this pull request Oct 2, 2023
Disabling of the Windows runner. These tests were flaking.
Because we don't support connector on Windows, I considered
disabling these tests.

Part of #10
DerekBum added a commit that referenced this pull request Oct 2, 2023
Disabling of the Windows runner. These tests were flaking.
Because we don't support connector on Windows, I considered
disabling these tests.

Part of #10
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from c1eabdc to e88579e Compare October 2, 2023 13:00
@DerekBum
Copy link
Author

DerekBum commented Oct 2, 2023

Disabled windows runners (in a separate commit).

net.go Outdated Show resolved Hide resolved
DerekBum added a commit that referenced this pull request Oct 4, 2023
Disabling of the Windows runner. These tests were flaking.
Because we don't support connector on Windows, I considered
disabling these tests.

Part of #10
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from e88579e to 30e397d Compare October 4, 2023 10:04
In order to replace timeouts with contexts in `Connect` instance
creation (go-tarantool), I need a `DialContext` function.
It accepts context, and cancels, if context is canceled by user.

Part of tarantool/go-tarantool#136
Disabling of the Windows runner. These tests were flaking.
Because we don't support connector on Windows, I considered
disabling these tests.

Part of #10
@DerekBum DerekBum force-pushed the DerekBum-no-gh-add-dial-with-context branch from 30e397d to ac865f3 Compare October 4, 2023 10:10
@oleg-jukovec oleg-jukovec merged commit 336ca93 into master Oct 4, 2023
16 checks passed
oleg-jukovec added a commit that referenced this pull request Feb 8, 2024
Overview

    The first release with a number of fixes. Since `libp2p/openssl`
    is not supported any more we need to support our version for usage
    in the Golang connector `tarantool/go-tarantool`.

New features

    DialContext function (#10).

Bugfixes

     Build by Golang 1.13 (#6).

     Build with OpenSSL < 1.1.1 (#7).

     Build on macOS as a static library (#8).

     Build on macOS with Apple M1 (#8).

     Random errors in the code caused by an invalid OpenSSL error
     handling in LoadPrivateKeyFromPEM,
     LoadPrivateKeyFromPEMWithPassword,
     LoadPrivateKeyFromDER and LoadPublicKeyFromPEM (#9).
@oleg-jukovec oleg-jukovec mentioned this pull request Feb 8, 2024
oleg-jukovec added a commit that referenced this pull request Feb 8, 2024
Overview

    The first release with a number of fixes. Since `libp2p/openssl`
    is not supported any more we need to support our version for usage
    in the Golang connector `tarantool/go-tarantool`.

    See releases of `libp2p/openssl`[1] for previous changes history.

New features

    DialContext function (#10).

Bugfixes

     Build by Golang 1.13 (#6).

     Build with OpenSSL < 1.1.1 (#7).

     Build on macOS as a static library (#8).

     Build on macOS with Apple M1 (#8).

     Random errors in the code caused by an invalid OpenSSL error
     handling in LoadPrivateKeyFromPEM,
     LoadPrivateKeyFromPEMWithPassword,
     LoadPrivateKeyFromDER and LoadPublicKeyFromPEM (#9).

1. https://github.com/libp2p/go-openssl/releases
oleg-jukovec added a commit that referenced this pull request Feb 8, 2024
Overview

    The first release with a number of fixes. Since `libp2p/openssl`
    is not supported any more we need to support our version for usage
    in the Golang connector `tarantool/go-tarantool`.

    See releases of `libp2p/openssl`[1] for previous changes history.

New features

    DialContext function (#10).

Bugfixes

     Build by Golang 1.13 (#6).

     Build with OpenSSL < 1.1.1 (#7).

     Build on macOS as a static library (#8).

     Build on macOS with Apple M1 (#8).

     Random errors in the code caused by an invalid OpenSSL error
     handling in LoadPrivateKeyFromPEM,
     LoadPrivateKeyFromPEMWithPassword,
     LoadPrivateKeyFromDER and LoadPublicKeyFromPEM (#9).

1. https://github.com/libp2p/go-openssl/releases
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.

None yet

3 participants