Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Wrapper that retries failed lowhaio HTTP requests. Allows retries of exceptions from failed HTTP requests.
pip install lowhaio_retry
The request
function returned from lowhaio.Pool
must be wrapped with lowhaio_retry.retry
, as in the below example. This will retry the request, waiting the specified interval between retries. If the request still fails, the final exception will be bubbled up to client code.
So instead of a request like
from lowhaio import Pool
request, _ = Pool()
body = ...
code, headers, body = await request(
b'PUT', 'https://example.com/path', body=body,
headers=((b'content-length', b'1234'),),
)
you can write
from lowhaio import Pool, HttpConnectionError, HttpDataError
from lowhaio_retry import retry
request, _ = Pool()
retriable_request = retry(request,
exception_intervals=(
# Seconds to wait after each exception
(HttpConnectionError, (0, 0, 0)),
(HttpDataError, (0, 1, 2, 4)),
),
)
body = ...
code, headers, body = await retriable_request(
b'PUT', 'https://example.com/path', body=body,
headers=((b'content-length', b'1234'),),
)
FAQs
Wrapper that retries failed lowhaio HTTP requests
We found that lowhaio-retry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.