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

"Bad Getway" is shown when the origin server is blocked #67

Closed
vmon opened this issue Jun 30, 2017 · 1 comment
Closed

"Bad Getway" is shown when the origin server is blocked #67

vmon opened this issue Jun 30, 2017 · 1 comment

Comments

@vmon
Copy link

vmon commented Jun 30, 2017

To reproduce block the origin using a firewall rule such as

sudo iptables -t filter -I FORWARD -d wadiya.wikia.com -p tcp -j REJECT

Request the orign you'll get a
Bad Gateway

page.
I wonder how the dcdn decides if the origin is blocked.

@vmon
Copy link
Author

vmon commented Jun 30, 2017

I also tried with

InputStream is = new URL(url).openStream();

and when the website is blocked it just return IOException which I assume dcdn should have dealt with the problem instead of throwing exception.

@shalunov shalunov closed this as completed Apr 6, 2018
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

No branches or pull requests

2 participants