Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35af74ad1a | ||
|
|
15fa91fb98 | ||
|
|
084987a3e1 | ||
|
|
e93cc77a58 |
@@ -23,11 +23,11 @@ repos:
|
|||||||
exclude: ^mkdocs\.yml$
|
exclude: ^mkdocs\.yml$
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.10.0
|
rev: 25.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.13.2
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
|
|||||||
2
poetry.lock
generated
2
poetry.lock
generated
@@ -1760,4 +1760,4 @@ type = ["pytest-mypy"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.1"
|
lock-version = "2.1"
|
||||||
python-versions = ">3.9, <4.0"
|
python-versions = ">3.9, <4.0"
|
||||||
content-hash = "6f5bcdfff0891ee60759be4a2ccb175049706e174b041fd2b33b1e85afd1edba"
|
content-hash = "67a8e0d34c0d1af0f8e4d617d80fd5afc8d197e5d5444f78fd82e4f716a52965"
|
||||||
|
|||||||
@@ -888,6 +888,7 @@ class MinerFactory:
|
|||||||
await writer.drain()
|
await writer.drain()
|
||||||
|
|
||||||
# loop to receive all the data
|
# loop to receive all the data
|
||||||
|
timeouts_remaining = max(1, int(settings.get("factory_get_timeout", 3)))
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
d = await asyncio.wait_for(reader.read(4096), timeout=1)
|
d = await asyncio.wait_for(reader.read(4096), timeout=1)
|
||||||
@@ -895,7 +896,10 @@ class MinerFactory:
|
|||||||
break
|
break
|
||||||
data += d
|
data += d
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
pass
|
timeouts_remaining -= 1
|
||||||
|
if not timeouts_remaining:
|
||||||
|
logger.warning(f"{ip}: Socket ping timeout.")
|
||||||
|
break
|
||||||
except ConnectionResetError:
|
except ConnectionResetError:
|
||||||
return
|
return
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "pyasic"
|
name = "pyasic"
|
||||||
version = "0.70.5"
|
version = "0.70.6"
|
||||||
|
|
||||||
description = "A simplified and standardized interface for Bitcoin ASICs."
|
description = "A simplified and standardized interface for Bitcoin ASICs."
|
||||||
authors = [{name = "UpstreamData", email = "brett@upstreamdata.ca"}]
|
authors = [{name = "UpstreamData", email = "brett@upstreamdata.ca"}]
|
||||||
@@ -44,6 +44,7 @@ requires-python = ">3.9, <4.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"httpx>=0.26.0",
|
"httpx>=0.26.0",
|
||||||
"asyncssh>=2.17.0",
|
"asyncssh>=2.17.0",
|
||||||
|
"cryptography>=39.0",
|
||||||
"passlib>=1.7.4",
|
"passlib>=1.7.4",
|
||||||
"pyaml>=23.12.0",
|
"pyaml>=23.12.0",
|
||||||
"tomli (>=2.2.1,<3.0.0) ; python_version < '3.11'",
|
"tomli (>=2.2.1,<3.0.0) ; python_version < '3.11'",
|
||||||
|
|||||||
Reference in New Issue
Block a user