Coder Social home page Coder Social logo

infinity waiting about bjoern HOT 7 CLOSED

jonashaag avatar jonashaag commented on June 13, 2024
infinity waiting

from bjoern.

Comments (7)

jonashaag avatar jonashaag commented on June 13, 2024

Hm it doesn't do that for me, could you try to compile bjoern using make debug and paste the debug output here?

Maybe also try wget/curl/whatever.

Could also try some of the other example script, for instance tests/hello.py and tests/filewrapper.py.

Thanks!

from bjoern.

rafaelcapucho avatar rafaelcapucho commented on June 13, 2024

Hello Jonas,

I tested the others files but I receive the same.

I can't do any kind of wget/curl because i'm without Internet connection in my notebook right now. I'm using one smartphone right now.

Setup.py build: http://bpaste.net/show/21839/

Make debug: http://bpaste.net/show/21840/

Tree: http://bpaste.net/show/21841/

Thank you

from bjoern.

jonashaag avatar jonashaag commented on June 13, 2024

Okay you seem to have a pretty bad Python installation (no python2-config?!)

Try this

rm -r build
CFLAGS='-D DEBUG' python setup.py install

That's equivalent to make debug. Then try again with the browser. Which browser(s) did you test?

(btw I'm off to bed now so don't expect an answer for the next 10 hours or so)

from bjoern.

rafaelcapucho avatar rafaelcapucho commented on June 13, 2024

My python 2.7.1+ is default from Ubunto 10.04

There aren't any python2-config

http://bpaste.net/show/21844/

I get the same infinity wait

Cya!

from bjoern.

jonashaag avatar jonashaag commented on June 13, 2024

CFLAGS=... must be on the very same line as setup.py install, just like in my previous post. It sets the CFLAGS environment variable for the setup.py call.

If that works, you should get a

Listening on 0.0.0.0:8080...

line after starting bjoern. Then send your requests from the browser. I need to see that log (everything from the Listening on ... line).

from bjoern.

kopertop avatar kopertop commented on June 13, 2024

I'm having the same issue, and here's what I see after compiling with the Debug flag:

% python tests/hello.py 
Listening on 0.0.0.0:8080...
[DEBUG Req 0] Accepted client 127.0.0.1:51942 on fd 6

It hangs forever, here's the output from curl -v

% curl http://localhost:8080 -v
* About to connect() to localhost port 8080 (#0)
*   Trying ::1... Connection refused
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:8080
> Accept: */*
> 

from bjoern.

jonashaag avatar jonashaag commented on June 13, 2024

That's really weird. Could you try out some of the other test cases as well? empy.py and keep-alive-behaviour.py in particular, but you can also try out other tests.

from bjoern.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.