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

Explicitely close files for recvfd client *after* they don't matter. #548

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

edwarnicke
Copy link
Member

Previous we were allowing the recvfd files to be closed by their
finalizer and the GC.

This sometimes led to premature closing of files leading to errors like:

networkservicemesh/cmd-forwarder-vppagent#187

'Delete' case. This fixes that by closing the files only after the
ctx has is Done.

Signed-off-by: Ed Warnicke hagbard@gmail.com

Previous we were allowing the recvfd files to be closed by their
finalizer and the GC.

This sometimes led to premature closing of files leading to errors like:

networkservicemesh/cmd-forwarder-vppagent#187

'Delete' case.  This fixes that by closing the files only after the
ctx has is Done.

Signed-off-by: Ed Warnicke <hagbard@gmail.com>
@fkautz fkautz merged commit 8b0bd57 into networkservicemesh:master Oct 20, 2020
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Oct 20, 2020
…k@master networkservicemesh/sdk#548

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Oct 20, 2020
…k@master networkservicemesh/sdk#548

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Oct 20, 2020
…k@master networkservicemesh/sdk#548

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Oct 20, 2020
…k@master networkservicemesh/sdk#548

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-vppagent that referenced this pull request Oct 20, 2020
…k@master networkservicemesh/sdk#548

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
edwarnicke pushed a commit to networkservicemesh/sdk-vppagent that referenced this pull request Oct 21, 2020
…k@master networkservicemesh/sdk#548 (#407)

networkservicemesh/sdk PR link: networkservicemesh/sdk#548

networkservicemesh/sdk commit message:
commit 8b0bd573228d24958ad9e74f643d083709e81844
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Oct 20 16:03:21 2020 -0500

    Explicitely close files for recvfd client *after* they don't matter. (#548)

    Previous we were allowing the recvfd files to be closed by their
    finalizer and the GC.

    This sometimes led to premature closing of files leading to errors like:

    networkservicemesh/cmd-forwarder-vppagent#187

    'Delete' case.  This fixes that by closing the files only after the
    ctx has is Done.

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>

Co-authored-by: NSMBot <nsmbot@networkservicmesh.io>
illbegood pushed a commit to illbegood/sdk that referenced this pull request Dec 20, 2020
…etworkservicemesh#548)

Previous we were allowing the recvfd files to be closed by their
finalizer and the GC.

This sometimes led to premature closing of files leading to errors like:

networkservicemesh/cmd-forwarder-vppagent#187

'Delete' case.  This fixes that by closing the files only after the
ctx has is Done.

Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Signed-off-by: Sergey Ershov <sergey.ershov@xored.com>
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.

2 participants