Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix: add socket keepalive #205

Merged
merged 3 commits into from
Sep 1, 2022
Merged

fix: add socket keepalive #205

merged 3 commits into from
Sep 1, 2022

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Aug 31, 2022

This is consistent with go-libp2p for incoming and outgoing connections

} else {
const address = socket.address()

// @ts-expect-error type of address is `{} | AdressInfo` - how to exclude {}?
Copy link
Member

Choose a reason for hiding this comment

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

I think you can explicitly type address above.
const address: AddressInfo = ...

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

lgtm

@wemeetagain wemeetagain merged commit 9ac799b into master Sep 1, 2022
@wemeetagain wemeetagain deleted the fix/add-socket-keepalive branch September 1, 2022 13:50
github-actions bot pushed a commit that referenced this pull request Sep 1, 2022
## [3.0.6](v3.0.5...v3.0.6) (2022-09-01)

### Bug Fixes

* add socket keepalive ([#205](#205)) ([9ac799b](9ac799b)), closes [/github.com/libp2p/go-libp2p/blob/master/p2p/transport/tcp/tcp.go#L85](https://github.com/libp2p//github.com/libp2p/go-libp2p/blob/master/p2p/transport/tcp/tcp.go/issues/L85) [/github.com/libp2p/go-libp2p/blob/master/p2p/transport/tcp/tcp.go#L191](https://github.com/libp2p//github.com/libp2p/go-libp2p/blob/master/p2p/transport/tcp/tcp.go/issues/L191)
@github-actions
Copy link

github-actions bot commented Sep 1, 2022

🎉 This PR is included in version 3.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants