Questions tagged [wsgiserver]

27 questions
1
vote
1 answer

Gevent - SSL WSGIServer blocks when it shouldn't

So I am creating a server, and making a request to it, all in the same file. This works properly: import gevent import gevent.monkey gevent.monkey.patch_all() import requests from gevent.pywsgi import WSGIServer from flask import Flask app =…
czardoz
  • 1,067
  • 2
  • 9
  • 14
1
vote
1 answer

How to stop WsgiServer in Linux

I am a newbee in cherrypy. I just tried with a sample program of wsgiserver.The program is as follows from cherrypy import wsgiserver def my_crazy_app(environ, start_response): status = '200 OK' response_headers =…
Pravitha V
  • 3,308
  • 4
  • 33
  • 51
0
votes
1 answer

How to increase the url length limit in WSGI?

I am using WSGI(Web Server Gateway Interface) server for my application. I am getting 414 error when I exceed 8k characters in the url. However the api calls work fine for url lengths up-to 8k characters. Does WSGI have any maximum URL limit that is…
0
votes
1 answer

What is the default maximum url limit in Flask?

I am working with Flask and WSGI Server. I am getting 414 error when i fire call with large urls(above 8k characters). I need to find out if it is limited by the Flask or the WSGI. Is there any default maximum size limit for urls in Flask?.
0
votes
0 answers

How to deploy Flask app as a windows service over HTTPS?

Using Flask API and WSGIServer, I'm able to launch it over HTTPS. But, I want our API as a windows service. So, when I run windows service and hit "https://127.0.0.1:88", I'm getting "Error: Client network socket disconnected before secure TLS…
Olegs
  • 1
  • 2
0
votes
0 answers

Gevent WSGI server doesn't handle request asynchronously even after monkey patch

My setup is simple. I load my server like this python gevent_wsgi_server.py. When I execute the /block endpoint multiple times, request is rendered sequentially in my browser. 5 seconds each. I am doing the monkey patch in the server before…
bad programmer
  • 818
  • 7
  • 12
0
votes
1 answer

why does my python wsgi server function run twice per request?

I wrote a simple web server with python3 and the WSGI modules: #!/usr/bin/python3 from wsgiref.simple_server import make_server port = 80 count = 0 def hello_app(environ, start_response): global count status = '200 OK' # HTTP Status …
danmcb
  • 289
  • 1
  • 12
0
votes
0 answers

Python web service - Allow only TLS 1.1 and 1.2

We have a python(2.7) web service: app.py ... import web import sys import argparse import traceback from web.wsgiserver import CherryPyWSGIServer ... URLS = ('/svc/healthcheck', 'Healthcheck') CherryPyWSGIServer.ssl_certificate =…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40
0
votes
1 answer

Is gunicorn required for django to serve REST?

Will the django itself not serve the REST calls from web server (Nginx). Why is Gunicorn required if django itself could do that.
vinod kumar
  • 427
  • 1
  • 4
  • 5
0
votes
1 answer

TypeError: a bytes-like object is required, not 'str' WSGI server

I can not fix this problem with Python 3.5. This code is ok for Python earlier than 3. I'm implementing a WSGI web server I need for a Django application. The name of file is: webserver2.py. But he tells me TypeError: a bytes-like object is…
Erik
  • 13
  • 1
  • 3
0
votes
1 answer

Limiting number of connections from bottlepy's `run`?

Is it possible to limit connections, restrict to certain number of unique IP addresses; with Bottle's run command? All I could find was this: http://bottlepy.org/docs/dev/deployment.html
Foo Stack
  • 2,185
  • 7
  • 24
  • 25
-1
votes
2 answers

WSGI ERROR :Target WSGI script cannot be loaded as Python module

I am trying to deploy a Django application using apache and i am getting the following error [Fri Oct 08 07:55:44.393237 2021] [wsgi:error] [pid 12424:tid 140450959271680] mod_wsgi (pid=12424): Target WSGI script…
tony
  • 21
  • 3
1
2