Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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)