diff --git a/.gitignore b/.gitignore index 3b8ea62a..b1fafaf8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,37 +1,38 @@ -*._* -*.pyc -*.pyo -*.ymlc -*.ymlc~ -*.scssc -*.so -*~ -.#* -.DS_Store -.project -.pydevproject -.settings -.idea -/.ropeproject -\#*# -/pub -/test*.py -/.local -/perf.data* -/config_local.yml -/build -__pycache__/ -.d8_history -/*.egg -/*.egg-info -/dist -/.cache -docs/_build -uvloop/loop.*.pyd -/.pytest_cache/ -/.mypy_cache/ -/.vscode -/.eggs -/.venv* -/wheelhouse -/uvloop-dev +*._* +*.pyc +*.pyo +*.ymlc +*.ymlc~ +*.scssc +*.so +*~ +.#* +.DS_Store +.project +.pydevproject +.settings +.idea +/.ropeproject +\#*# +/pub +/test*.py +/.local +/perf.data* +/config_local.yml +/build +__pycache__/ +.d8_history +/*.egg +/*.egg-info +/dist +/.cache +docs/_build +uvloop/loop.*.pyd +/.pytest_cache/ +/.mypy_cache/ +/.eggs +/.venv* +/wheelhouse +/uvloop-dev +config.bat +node_modules diff --git a/examples/bench/utils/__init__.py b/examples/bench/utils/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/examples/bench/utils/public/fonts/README.md b/examples/bench/utils/public/fonts/README.md new file mode 100644 index 00000000..1fb874ba --- /dev/null +++ b/examples/bench/utils/public/fonts/README.md @@ -0,0 +1,24 @@ +# Fonts Directory + +This directory contains custom fonts for the Blockchain Explorer application. + +## Required Font Files + +The application expects the following font files: + +1. **BlockchainFont-Regular.woff2** and **BlockchainFont-Regular.woff** + - Regular weight font for the main UI + +2. **BlockchainFont-Bold.woff2** and **BlockchainFont-Bold.woff** + - Bold weight font for headings + +3. **TechMono-Regular.woff2** and **TechMono-Regular.woff** + - Monospace font for code and hash displays + +## Note + +If you don't have custom fonts, the application will fall back to system fonts: +- BlockchainFont → system sans-serif fonts +- TechMono → system monospace fonts (Courier New, etc.) + +The fonts are referenced in `public/index.html` and will be loaded automatically when available. diff --git a/examples/bench/utils/public/fonts/fa-regular-400.eot b/examples/bench/utils/public/fonts/fa-regular-400.eot new file mode 100644 index 00000000..38cf2517 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-regular-400.eot differ diff --git a/examples/bench/utils/public/fonts/fa-regular-400.svg b/examples/bench/utils/public/fonts/fa-regular-400.svg new file mode 100644 index 00000000..13180f6e --- /dev/null +++ b/examples/bench/utils/public/fonts/fa-regular-400.svg @@ -0,0 +1,803 @@ + + + + + +Created by FontForge 20190801 at Mon Mar 23 10:45:51 2020 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/bench/utils/public/fonts/fa-regular-400.ttf b/examples/bench/utils/public/fonts/fa-regular-400.ttf new file mode 100644 index 00000000..abe99e20 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-regular-400.ttf differ diff --git a/examples/bench/utils/public/fonts/fa-regular-400.woff b/examples/bench/utils/public/fonts/fa-regular-400.woff new file mode 100644 index 00000000..24de566a Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-regular-400.woff differ diff --git a/examples/bench/utils/public/fonts/fa-regular-400.woff2 b/examples/bench/utils/public/fonts/fa-regular-400.woff2 new file mode 100644 index 00000000..7e0118e5 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-regular-400.woff2 differ diff --git a/examples/bench/utils/public/fonts/fa-solid-900.eot b/examples/bench/utils/public/fonts/fa-solid-900.eot new file mode 100644 index 00000000..d3b77c22 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-solid-900.eot differ diff --git a/examples/bench/utils/public/fonts/fa-solid-900.svg b/examples/bench/utils/public/fonts/fa-solid-900.svg new file mode 100644 index 00000000..5543afa7 --- /dev/null +++ b/examples/bench/utils/public/fonts/fa-solid-900.svg @@ -0,0 +1,4938 @@ + + + + + +Created by FontForge 20190801 at Mon Mar 23 10:45:51 2020 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/bench/utils/public/fonts/fa-solid-900.ttf b/examples/bench/utils/public/fonts/fa-solid-900.ttf new file mode 100644 index 00000000..5b979039 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-solid-900.ttf differ diff --git a/examples/bench/utils/public/fonts/fa-solid-900.woff b/examples/bench/utils/public/fonts/fa-solid-900.woff new file mode 100644 index 00000000..beec7917 Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-solid-900.woff differ diff --git a/examples/bench/utils/public/fonts/fa-solid-900.woff2 b/examples/bench/utils/public/fonts/fa-solid-900.woff2 new file mode 100644 index 00000000..978a681a Binary files /dev/null and b/examples/bench/utils/public/fonts/fa-solid-900.woff2 differ diff --git a/tests/test_tcp.py b/tests/test_tcp.py index b933166b..1f939210 100644 --- a/tests/test_tcp.py +++ b/tests/test_tcp.py @@ -1349,6 +1349,8 @@ def resume_writing(self): t, p = await self.loop.create_connection(Protocol, *addr) + self.assertEqual(t.get_write_buffer_limits(), (16384, 65536)) + t.write(b'q' * 512) t.set_write_buffer_limits(low=16385) self.assertEqual(t.get_write_buffer_limits(), (16385, 65540)) diff --git a/uvloop/handles/basetransport.pyx b/uvloop/handles/basetransport.pyx index 28b30794..24686576 100644 --- a/uvloop/handles/basetransport.pyx +++ b/uvloop/handles/basetransport.pyx @@ -3,7 +3,7 @@ cdef class UVBaseTransport(UVSocketHandle): def __cinit__(self): # Flow control self._high_water = FLOW_CONTROL_HIGH_WATER * 1024 - self._low_water = FLOW_CONTROL_HIGH_WATER // 4 + self._low_water = FLOW_CONTROL_HIGH_WATER * 1024 // 4 self._protocol = None self._protocol_connected = 0