Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. import sys
  2. import os
  3. import time
  4. def entrypoint():
  5. import os
  6. sys.stderr.write('Called ! req by %s' % os.getenv('REMOTE_ADDR'))
  7. env = "foo"
  8. env = '<br/>'.join(["'%s'='%s'" % (k, os.environ[k]) for k in os.environ.keys()])
  9. msg = "Content-Type: text/html\r\n\r\nHello world !(%0.2f)\nenv : %s" % (time.time(), env)
  10. sys.stdout.write(msg)