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

try to fix race condition causing exit code 227 #49

Closed
wants to merge 2 commits into from

Conversation

dwightguth
Copy link

Whenever I tried to run nailgun, I would always see intermittent socket disconnects causing the client to return error code 227 before it had finished printing everything to stdout/stderr. After I made this modification to the code, those went away. I believe what is happening is that socket.close does not wait for all the data to be sent to the client before breaking the connection.

@sdwilsh
Copy link

sdwilsh commented May 21, 2015

@dwightguth, would you be interested in addressing the merge conflicts and updating it so we can try to get this in?

Conflicts:
	nailgun-server/src/main/java/com/martiansoftware/nailgun/NGSession.java
@dwightguth
Copy link
Author

I have not tested this yet, but I believe the merged version should address your issues.

denji pushed a commit to closure-gun/nailgun that referenced this pull request Jul 13, 2015
denji pushed a commit to closure-gun/nailgun that referenced this pull request Jul 13, 2015
denji pushed a commit to closure-gun/nailgun that referenced this pull request Jul 21, 2015
@benhyland
Copy link

Note that we are still seeing 227 errors with buckd/nailgun even after facebook/buck#262 was closed. They are much less frequent, but I wonder if they might go away entirely if this got merged? I haven't been able to diagnose any further, as yet.

@dwightguth
Copy link
Author

I suggest closing this in favor of #74 because it contains a more up-to-date fix.

@sbalabanov-zz
Copy link
Contributor

Closing all pull requests older than 6 months; please reopen if it is still relevant

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

Successfully merging this pull request may close these issues.

4 participants