Welcome, Guest. Please login or register.
Did you miss your activation email?
August 19, 2018, 12:40:55 PM
Home Famicom World Search Calendar Login Register

+  Famicom World
|-+  Famicom World
| |-+  Updates and Suggestions (Moderators: manuel, L___E___T)
| | |-+  Sending post reply with images from obrazkelektroda.eu = very long response time
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Sending post reply with images from obrazkelektroda.eu = very long response time  (Read 1696 times)
krzy
Famicom
**
Posts: 77


« on: June 19, 2018, 07:16:18 PM »

I often upload images which will be attached to post to https://obrazki.elektroda.pl/
This is very good site which allows direct linking to the images with thumbnails and I use it since many many years.

But since some time, when I respond on this forum to any post and attach images, for example:
Code:
[url=http://obrazki.elektroda.pl/9560129100_1496602879.jpg][img]http://obrazki.elektroda.pl/9560129100_1496602879_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/9368560300_1496602881.jpg][img]http://obrazki.elektroda.pl/9368560300_1496602881_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/2470718000_1496602883.jpg][img]http://obrazki.elektroda.pl/2470718000_1496602883_thumb.jpg[/img][/url]
[url=http://obrazki.elektroda.pl/6660570700_1496602885.jpg][img]http://obrazki.elektroda.pl/6660570700_1496602885_thumb.jpg[/img][/url]
 [url=http://obrazki.elektroda.pl/7760701000_1496602887.jpg][img]http://obrazki.elektroda.pl/7760701000_1496602887_thumb.jpg[/img][/url]
 [url=http://obrazki.elektroda.pl/8572866300_1496602889.jpg][img]http://obrazki.elektroda.pl/8572866300_1496602889_thumb.jpg[/img][/url]

,
after pressing  "POST", the spinning icon just stays for a few minutes and after that time I got:

https://obrazki.elektroda.pl/4104904400_1529439305.png

This is not the problem with obrazki.elektroda.eu, Looks more like the forum's engine try to visit the links and maybe it gets DDOS ban?
Logged
UglyJoe
Administrator
Disk-kun
*****
Gender: Male
United States United States
Posts: 5355



WWW
« Reply #1 on: June 20, 2018, 07:20:39 PM »

Thanks for the example images.

Yeah, I see that even the Preview features takes forever to come back (if it comes back at all).  I'll try to look into what the forum code is doing tonight after work.
Logged
krzy
Famicom
**
Posts: 77


« Reply #2 on: June 20, 2018, 07:51:49 PM »

I did small test meanwhile - I started my own www server, put few images on it and created a post with [img] links to those images.
After pressing post, for each [img] photo I got HTTP fetch response from:
208.113.153.236 (it is famicomworld server)
52.44.20.169 ( ? ? ? )
and my IP
So looks like the forum engine tries for unknown reason to get those images and if somebody put a lot of images in his post, those many request were probably reason of ban fromelektroda.eu.

I did similar test on other forum on phpBB engine and it did not want to connect to my server for images so looks like famicomworld is spying on us Cheesy
« Last Edit: June 20, 2018, 08:07:41 PM by krzy » Logged
UglyJoe
Administrator
Disk-kun
*****
Gender: Male
United States United States
Posts: 5355



WWW
« Reply #3 on: June 20, 2018, 08:34:29 PM »

Yeah, I figured the server was trying to grab the image.  Until I get a chance to look at the code all I can do is guess as to why.

My guesses:

1) Some kind of scan that is checking to see if the URL is valid / a valid image.

2) The Tapatalk plugin being sneaky and annoying.

Post Merge: June 21, 2018, 02:11:31 AM


Bingo POW

Post Merge: June 21, 2018, 02:28:57 AM
So the forum software has a method that will download the image so that it can determine its dimensions (which seems...a bit wasteful, honestly).  The code has a built-in timeout of 0.5 seconds, which is nice, but there are conditions which will break it. 

You have a url: http://obrazki.elektroda.pl/9560129100_1496602879_thumb.jpg

It tries to look up this image, but the image server redirects you to an "https" address.  This protocol switch is apparently not handled.

The proper solution would be to figure out how to make it handle this case gracefully.  However, this is PHP code and it's getting late here, so instead I just updated the method to ignore URLs from the elektroda.pl domain.  Seems to work  Grin

Alternatively, you could have used the https address instead of the http address.
« Last Edit: June 21, 2018, 02:28:57 AM by UglyJoe » Logged
MaarioS
AV Famicom
****
Gender: Male
Poland Poland
Posts: 286



« Reply #4 on: June 21, 2018, 09:24:35 AM »

Seriously though, despite all advantages, Polish servers suck. Just use imgur.com or anything similar on a global scale
Logged
fcgamer
Sharp C1
*****
Gender: Male
Posts: 2271


WWW
« Reply #5 on: June 21, 2018, 03:31:03 PM »

*facepalm*  I had mentioned this whole situation back a month ago, here:

https://www.famicomworld.com/forum/index.php?topic=14050.0

Like krzy said though, this is definitely a newer issue to have come up, with a more recent code update / modification I presume, since I had been using dozens of photos from there for months, linked to single posts, without issues up until about April or May.
Logged

Please check out my gaming blog, FC Game Land, for information and my own personal thoughts on Famicom and other imported games.  I will also list items for sale on there, for those who are interested.

FC Game Land:  http://fcgamer.wordpress.com/
UglyJoe
Administrator
Disk-kun
*****
Gender: Male
United States United States
Posts: 5355



WWW
« Reply #6 on: June 21, 2018, 04:27:51 PM »

*facepalm*  I had mentioned this whole situation back a month ago, here:

Sorry.

Like krzy said though, this is definitely a newer issue to have come up, with a more recent code update / modification I presume, since I had been using dozens of photos from there for months, linked to single posts, without issues up until about April or May.

The image server must have only recently (in the past few months) have started to redirect all http requests to https.  The forum code here doesn't change very often (just the occasional security patch).
Logged
krzy
Famicom
**
Posts: 77


« Reply #7 on: June 21, 2018, 05:27:58 PM »

Quote
The image server must have only recently (in the past few months) have started to redirect all http requests to https.  The forum code here doesn't change very often (just the occasional security patch).
https://www.famicomworld.com/forum/index.php?topic=14022.0

This is my post from march 2018, it contains images with https but I had no issue uploading it, so are you sure that is the problem?
Logged
UglyJoe
Administrator
Disk-kun
*****
Gender: Male
United States United States
Posts: 5355



WWW
« Reply #8 on: June 21, 2018, 05:33:33 PM »

The issue is that the http URLs are now being redirected to https URLs by the image host.  (The example images you gave me in the first post are http, not https).  The redirect was breaking the code that fetches the image to get the dimensions.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!