• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICRAR / ngas
69%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Repo Added 30 Jun 2017 02:01AM UTC
Files 165
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH stream-proxy-request
branch: stream-proxy-request
CHANGE BRANCH
x
Reset
  • stream-proxy-request
  • 98-query-ignore
  • NGAS-163
  • aiosmtpd
  • avoid-installing-bsddb3-in-py27
  • bbcp_fixes
  • c_client_warning_fixes
  • centos7-compatibility-changes
  • clone-fix
  • clone-order-fixes
  • correct-janitor-init
  • correct-logging-c
  • coverage-stability
  • direct_sql
  • doc-updates
  • docs-fix
  • document-future-removal-of-27
  • fits_optional_arcfile
  • fix-requests-dependency-specs
  • fs-monitor
  • fs-monitor-fixes
  • github-actions
  • improve-register-error-message
  • issue-103
  • issue-13
  • issue-38
  • issue-44
  • issue-50
  • issue-51
  • janitor-thread-startup
  • macos-hostnames
  • macos-travis-fix
  • macos-travis-update
  • master
  • netifaces-fix
  • next
  • no-create-venv
  • none-reg-parameters
  • partner_sites
  • plugins-importing
  • py311
  • py39
  • python-client-improvements
  • relaxed-netifaces
  • release-12.0
  • remove-2.7-builds
  • remove-test-generic-registration-plugin
  • requests-pinning
  • richer-archiving-event
  • separate-test-servers
  • servers-flag
  • small-improvements
  • smtp-testing
  • subscription-def
  • subscription_thread_ng
  • travis-errors
  • travis-fixes
  • travis-focal
  • update-travis-matrix
  • uwe-fixes
  • v11
  • v12
  • v12.0
  • various_improvements
  • volumes

pending completion
436

push

travis-ci-com

rtobar
Modify proxy_request to work in streaming mode

As pointed out in #29, the previous implementation of proxy_request
accumulated the proxy's response before it was sent back to the original
client. This didn't only add latency to the system, but also the
potential of making the process crash because too much memory could end
up being used the NGAS, triggering the OOM killer to kill our process.

In the case of POST requests this streaming functionality was not
included because the underlying functions in the ngamsHttpUtils module
didn't support this. In the case of a GET request this behavior wasn't
implemented only to avoid writing some code and share it with the POST
branch of the code.

This commit finally changes the behavior of proxy_request to stream the
response back to the original client rather than accumulating it in
memory. Now that the missing functionality has been included into
ngamsHttpUtils both GET and POST requests can be streamed, while their
code is mostly shared.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

13337 of 19455 relevant lines covered (68.55%)

4.78 hits per line

Relevant lines Covered
Build:
Build:
19455 RELEVANT LINES 13337 COVERED LINES
4.78 HITS PER LINE
Source Files on stream-proxy-request
  • Tree
  • List 163
  • Changed 30
  • Source Changed 1
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
436 stream-proxy-request Modify proxy_request to work in streaming mode As pointed out in #29, the previous implementation of proxy_request accumulated the proxy's response before it was sent back to the original client. This didn't only add latency to the system, but al... push 22 Sep 2020 06:48AM UTC rtobar travis-ci-com pending completion  
434 stream-proxy-request Modify proxy_request to work in streaming mode As pointed out in #29, the previous implementation of proxy_request accumulated the proxy's response before it was sent back to the original client. This didn't only add latency to the system, but al... push 21 Sep 2020 09:44AM UTC rtobar travis-ci-com pending completion  
See All Builds (534)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc