Comments (6)
Can you shed any light on why this might be?
I don't presently have any Gentoo GNU/Linux installations for testing.
from pyopenssl.
This test seems to assume that writing 512 * 2048 (i.e. 1048576) bytes is sufficient fo fill socket buffer. On my system, the buffer is filled after increasing this number several times.
client_socket.send() is currently called at most 2048 times with 512-byte argument.
When client_socket.send() is called with 1-byte argument, then calling this function at least 3591944 times allows this test to pass.
When client_socket.send() is called with 512-byte argument, then calling this function at least 5417 times allows this test to pass.
I use Linux 3.13.6, glibc 2.18, x86_64 architecture. I do not know if socket buffer size is somewhere configurable.
I suggest to significantly increase the number of attempted writes in this test. Possible fix:
--- OpenSSL/test/test_ssl.py
+++ OpenSSL/test/test_ssl.py
@@ -1913,7 +1913,7 @@
# Fill up the client's send buffer so Connection won't be able to write
# anything.
msg = b"x" * 512
- for i in range(2048):
+ for i in range(2 ** 16):
try:
client_socket.send(msg)
except error as e:
from pyopenssl.
Can you give the branch for #76 a try?
from pyopenssl.
It works for me.
from pyopenssl.
Perhaps we should close this issue?
from pyopenssl.
Original reporter commented that the issue is resolved. Yes, let's close it.
from pyopenssl.
Related Issues (20)
- Implement PyOpenSSL deprecated functions as calls into Cryptography library HOT 3
- Use SSL_session_reused API HOT 1
- RemoveError: 'pyopenssl' is a dependency of conda and cannot be removed from conda's operating environment. HOT 2
- Add support for retrieving negotiated SRTP profile HOT 4
- pyopenssl-23.3.0 is incompatible with the latest cryptography 42.0.0
- [docs] Use Furo?
- TLS 1.3 Session Resumption with PSKs in pyopenssl? HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 2
- Support for `cryptography.X509.Extensions` in `pyopenssl.X509.add_extensions` etc? HOT 2
- 24.1.0: pytest fails in 3 units and some pytest warnings HOT 12
- 24.1.0: sphinx warnings `reference target not found` HOT 1
- CVE-2023-6129 Safety vulnerability HOT 1
- Some X509 Tests fail on v24.1.0 HOT 1
- Add SSL_OP_CLEANSE_PLAINTEXT to exported set of options
- Use of a Broken or Risky Cryptographic Algorithm [Snyk Vulnerability] HOT 1
- expose `SSL_set_info_callback` (i.e. `Connection.set_info_callback`)
- X.509Name.get_components() doesn't process Subject values like X.509Name.__getattr__() does with Unicode strings. HOT 1
- x509.sign does not work for Ed25519 keys (digest must be NULL) HOT 1
- CVE-2024-4741 HOT 1
- How to decrypt openSSL PKCS#7 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyopenssl.