Skip to content

Conversation

@tzssangglass
Copy link
Member

What this PR does / why we need it:

If the plugin-runner sends a stop request but does not set an Http Status Code, APISIX will use 0 as the default status code, causing the current request to run later phases.

see: apache/apisix-java-plugin-runner#55

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

ext.go({stop = true, stop_no_code = true})
}
}
--- error_code: 200
Copy link
Member

Choose a reason for hiding this comment

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

We already check if error_code == 200 by default

@tokers tokers merged commit 316d230 into apache:master Aug 3, 2021
@tzssangglass tzssangglass deleted the eps0 branch August 14, 2021 02:47
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.

3 participants