librelist archives

« back to archive

Internet Explorer hangs when connecting to Flask build-in server

Internet Explorer hangs when connecting to Flask build-in server

From:
Coenie Richards
Date:
2012-03-07 @ 13:01
Hi

Busy testing layouts etc and for some reason IE is not finishing or
completing it request to the build-in server.
The first page load works fine the second and so on just keeps on
trying to load but never loads.

Even tried it with very simple version of an app (below and the same
thing just keeps loading) also tried 127.0.0.1 and diffrent ports,
must be something that IE is doing that the other browsers are not
doing.

Anybody else experiencing this?

Chrome and Firefox works just fine.


#---------------
from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello World!'

if __name__ == '__main__':
    app.run(host='0.0.0.0',port=88)
#---------------


Internet Explorer 9
Windows 7

Will try later with some kind of proper web server or something.


Regards

Re: [flask] Internet Explorer hangs when connecting to Flask build-in server

From:
Armin Ronacher
Date:
2012-04-16 @ 14:58
Hi,

On 3/7/12 1:01 PM, Coenie Richards wrote:
> Hi
> 
> Busy testing layouts etc and for some reason IE is not finishing or
> completing it request to the build-in server.
> The first page load works fine the second and so on just keeps on
> trying to load but never loads.
That can be fixed by passing 'threads=True' to the run function.
Internet explorer triggers two requests at the same time which deadlock
each other.  Threads are disabled by default because they can make
debugging harder.


Regards,
Armin

Re: [flask] Internet Explorer hangs when connecting to Flask build-in server

From:
Simon Sapin
Date:
2012-04-16 @ 20:07
Le 16/04/2012 16:58, Armin Ronacher a écrit :
> That can be fixed by passing 'threads=True' to the run function.
> Internet explorer triggers two requests at the same time which deadlock
> each other.  Threads are disabled by default because they can make
> debugging harder.

Hi Armin,

This sounds pretty bad :/ Is the deadlock in Flask, in BaseHTTPServer or 
somewhere else? Can it be fixed?

Regards,
-- 
Simon Sapin

Re: [flask] Internet Explorer hangs when connecting to Flask build-in server

From:
施德来 delai
Date:
2012-04-15 @ 08:36
Same issue,  IE6~8 all cant visit(with ip like 192.168.1.91:5000)
flask built-in
web-server located in another machine (in the same LAN networking).
 Chrome, firefox all feel good

On Wed, Mar 7, 2012 at 9:01 PM, Coenie Richards <coenier@gmail.com> wrote:

> Hi
>
> Busy testing layouts etc and for some reason IE is not finishing or
> completing it request to the build-in server.
> The first page load works fine the second and so on just keeps on
> trying to load but never loads.
>
> Even tried it with very simple version of an app (below and the same
> thing just keeps loading) also tried 127.0.0.1 and diffrent ports,
> must be something that IE is doing that the other browsers are not
> doing.
>
> Anybody else experiencing this?
>
> Chrome and Firefox works just fine.
>
>
> #---------------
> from flask import Flask
>
> app = Flask(__name__)
>
> @app.route('/')
> def hello_world():
>    return 'Hello World!'
>
> if __name__ == '__main__':
>    app.run(host='0.0.0.0',port=88)
> #---------------
>
>
> Internet Explorer 9
> Windows 7
>
> Will try later with some kind of proper web server or something.
>
>
> Regards
>



-- 
Delai Shi 施德来

Re: [flask] Internet Explorer hangs when connecting to Flask build-in server

From:
Simon Sapin
Date:
2012-04-15 @ 10:38
Le 15/04/2012 10:36, 施德来 delai a écrit :
> Same issue,  IE6~8 all cant visit(with ip like 192.168.1.91:5000
> <http://192.168.1.91:5000>) flask built-in web-server located in another
> machine (in the same LAN networking).    Chrome, firefox all feel good


Do you type the full URL in IE, including http:// ?

-- 
Simon Sapin