I'm doing some file uploads that sends to an nginx reverse proxy. If I set the python requests timeout to 10 seconds and upload a large file, nginx will report client prematurely closed connection and forward an empty body to the server. If I remove the requests timeout, the file uploads without any issues. As I understand it, the timeout should only apply if the client fails to receive or send any bytes, which I don't believe is the case as it's in the middle of uploading the file. It seems to behave more like a time limit, cutting the connection after 10 seconds with no exception being raised by requests. Is sending bytes different than reading bytes for timeout? I haven't set anything for stream or tried any type of multi-part. I would like to set a timeout but confused as to why the connection is getting aborted early - thanks for any help.
Python Requests POST timeout prematurely closed connection
279 Views Asked by ElJeffe At
0
There are 0 best solutions below
Related Questions in POST
- Jquery on submit ajax post needs two clicks in IE
- cleaning a post URL from an Array
- AJAX xmlhttp.open sumit data using POST method
- Check if POST is succesfull (Android)
- shell cript in php code
- Recover the data already recorded in my Django admin space in my form
- post request (with body) in node.js
- issues using htmlspecialchars($_POST['']) to keep data on value after submitting
- How do you Request[""] with a Dynamic Variable? Request["@Variable"]?
- PHP Curl json POST not working for me
- difference between youtube's request and mine
- Upload Image / Make Post Request via curl + scrot + xclip
- POST the values of several html <input type='button'>
- Actionscript 3 Air iOS POST data not sending with URLLoader
- Laravel throwing error on foreach() loop on POST
Related Questions in PYTHON-REQUESTS
- Invalid URL: No host supplied : error while using Request.get(url) in Python
- compare python requests with curl
- Python Requests just got very slow, better alternative?
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- python requests SSLError
- Python-Requests Chunked XML Data Returns only First 2 Lines of Data
- Reusing connections in Django with Python Requests
- Log in to website behind CloudFlare using Python Requests
- Python requests throwing SSLError while using local certificate
- Python web request slow through Proxy
- Google redirects query request 503 error
- Python child process silently crashes when issuing an HTTP request
- Alternative to using mechanize to fetch data?
- http 500 error when attempting to make a post request with python requests module
- Getting cookies with requests
Related Questions in TIMEOUT
- Function timeouts in C and thread
- RubyOnRails multiple database connections errors
- Debugging a 404 error for an existing page
- HttpWebRequest timing out, but no packets leaving client
- Multipart/form-data POST request gets timeout and is never sent using AFNetworking
- How to prevent timeout when running a time consuming PHP
- RequireJS module load timeout when using bundles
- OkHttp/Retrofit default timeout
- jetty replay request on timeout
- BASH - Getting an rsh command to return a value or to timeout
- ShareFile upload with Python 2.7.5 code timesout on FTPS STOR
- This page cannot be displayed error when calling a long stored procedure
- Javascript reruning timeout after being cleared
- Retrieve the data from sql database and don`t encounter timeout exception
- AmazonEc2InstanceDataPropertySource.getProperty() is extremely slow when run outside of Amazon
Related Questions in NGINX-REVERSE-PROXY
- How to edit the request header in nginx and then send to backend?
- nginx dynamic routing per browser user session
- How to configure nginx as reverse proxy for the site, which is behind squid proxy
- Is it possible to add a cookie on a different domain request with nginx?
- Nginx subdomain configuration is wrong
- proxy_cookie_path not working in nginx
- nginx dynamic proxy_pass based on database lookup
- nginx configure pgadmin in location
- Virtual host is not accessible outside container using nginx
- rewrite url but show original url + nginx
- Configuration for Piwik behind nginx reverse proxy with rewrite
- Nexus 3.5.1 proxies from snapshot repo nothing but maven metadata files
- nginx configuration index.html different path
- How can I remove the need for two docker containers which work together to use bridged networking?
- How to Proxy Pass from / to /index.html
Related Questions in CONNECTION-CLOSE
- Auto exit Telnet command back to prompt without human intervention ^] quit close exit code 1
- java.sql.SQLRecoverableException: Closed Connection; State=08003; ErrorCode=17008
- PHP close connection and continue execution background
- PHP Close Header
- Content-Length header value is not equal to real content length
- Python Requests POST timeout prematurely closed connection
- How can I close and then reopen async TCP socket in C#?
- WebSocketSharp with BinanceAPI
- Connection is closed when using Hibernate Search with Spring application
- Heroku "Connection closed without response" H13 with golang after http 503
- The connection was not closed error for Visual Studio load test
- Opening a (Bluemix) container to all incoming connection
- GridDB: The connection already been lost(NewSQL/NoSQL)
- How to fix connection close issue in synchronised method?
- DSRA9110E: Statement is closed occurs inside a Thread's run() in Websphere
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?