You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/02/16 13:14:13 UTC
[GitHub] massakam opened a new pull request #1242: Change HTTP status code which WebSocket proxy returns to producer whe?
massakam opened a new pull request #1242: Change HTTP status code which WebSocket proxy returns to producer whe?
URL: https://github.com/apache/incubator-pulsar/pull/1242
?n backlog exceeds threshold
### Motivation
Currently, WebSocket proxy returns 500 error to producer that is trying to connect when backlog exceeds the threshold.
However, I think 403 (or 503?) error is more suitable.
### Modifications
Modify ProducerHandler to return 403 error if ProducerBlockedQuotaExceededException occurs.
### Result
The reason why producer has failed to connect to WebSocket proxy will be easier to understand.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services