Skip to content

Feature: support destination persistent connections attribute - #13

Open
kwanhur wants to merge 2 commits into
moby:masterfrom
kwanhur:feature-dest-pers-conn
Open

Feature: support destination persistent connections attribute#13
kwanhur wants to merge 2 commits into
moby:masterfrom
kwanhur:feature-dest-pers-conn

Conversation

@kwanhur

Copy link
Copy Markdown
Contributor

Add PersistentConnections attribute in Destination struct

Signed-off-by: kwanhur <huang_hua2012@163.com>
@kwanhur

Copy link
Copy Markdown
ContributorAuthor

check failed details do not relate with the feature codes

@andrewsykimandrewsykim left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@kwanhur looks like github thinks the email you are using is invalid, would it be possible to use a valid email address?

Comment threadnetlink.go
case ipvsDestAttrInactiveConnections:
d.InactiveConnections = int(native.Uint16(attr.Value))
case ipvsDestAttrPersistentConnections:
d.PersistentConnections = int(native.Uint16(attr.Value))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looking at the kernel implementation this should be uint32?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yeap, the connection attributes ActiveConnectionsInactiveConnectionsPersistentConnections also should be uint32. Unified could be better.

@kwanhur

Copy link
Copy Markdown
ContributorAuthor

@kwanhur looks like github thinks the email you are using is invalid, would it be possible to use a valid email address?

it has been valid :-)

@andrewsykim

Copy link
Copy Markdown
Collaborator

Seeing this on github actions:

### ERRORED 04:45:14Z
- Please verify your email address to run GitHub Actions workflows. https://github.com/settings/emails

Maybe it's been fixed now, can you rebase and fix conflicts?

Signed-off-by: kwanhur <huang_hua2012@163.com>
@kwanhur

Copy link
Copy Markdown
ContributorAuthor

Seeing this on github actions:

### ERRORED 04:45:14Z
- Please verify your email address to run GitHub Actions workflows. https://github.com/settings/emails

Maybe it's been fixed now, can you rebase and fix conflicts?

conflicts have been fixed :)

@kwanhur

Copy link
Copy Markdown
ContributorAuthor

Ping @andrewsykim how about this PR?

Sign up for freeto 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.

2 participants

@kwanhur@andrewsykim