Connections Limit Reached
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 28
- Forks
- 25
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 20
Description
I am running a script to create one the MRBWM bulletins and am using threading to retrieve data with CWMSpy/CDA. I am running into what appears to be connection errors. If run the script for a couple projects, I do not get any errors, but when I run it for all the projects, the script throws a CDA 500 error. Looking at the Apache logs, we think it is due to my users connection limit, but is there a way to increase this limit so we can create a complete bulletin?
`Exception has occurred: ConnectionError
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
File "C:\Users\ryan\OneDrive - US Army Corps of Engineers\Documents\Projects\Git_Repositories\MRBWM_Scripts\CWMS_Python\g7cwpa30\cronjobs\Server_Utils_Py.py", line 134, in retrieveCwmsData
if TimeseriesExists : data = cwms.get_timeseries(ts_id, office_id='NWDM', begin = Start_Time_DT, end = End_Time_DT, page_size=300000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cronjobs/Server_Utils_Py.py at line 134 and the cwms.get_timeseries call, then compare the client traceback with the Apache logs and CDA 500 response. Check how threaded requests and page_size=300000 relate to the server's connection limit. Done means identifying the limiting configuration or failure cause and confirming that a complete bulletin runs without the connection abort.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, java, python
- Domain
- api, backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100