Comments (4)
12/14 Test #12: sockpuppet_tls_buffered_test ............***Failed 3.57 sec
generating random reference data
test case #1: unlimited send timeout
server listening at [::1]:8554
client [::1]:49184 connected to server [::1]:8554
sending reference data from [::1]:49184 to [::1]:8554
verifying received against reference data
test case #2: limited send timeout
server listening at [::1]:8554
client [::1]:49185 connected to server [::1]:8554
sending reference data from [::1]:49185 to [::1]:8554
failed to wait for TLS socket readable/writable: 0050E80300700000:error:0A00010F:SSL routines:ssl3_write_bytes:bad length:ssl/record/rec_layer_s3.c:370:
verifying received against reference data
received only 661894 of 1000000 bytes
test case #3: non-blocking send
server listening at [::1]:8554
client [::1]:49186 connected to server [::1]:8554
sending reference data from [::1]:49186 to [::1]:8554
failed to wait for TLS socket readable/writable: 0050E80300700000:error:0A00010F:SSL routines:ssl3_write_bytes:bad length:ssl/record/rec_layer_s3.c:370:
verifying received against reference data
received only 661062 of 1000000 bytes
from sockpuppet.
More insights in verbose test failure in MSVC [1] and verbose test failure in OSX.
2023-07-23T10:28:33.5840040Z Start 12: sockpuppet_tls_buffered_test
2023-07-23T10:28:37.1898040Z 12/14 Test #12: sockpuppet_tls_buffered_test ............***Failed 3.61 sec
...
2023-07-23T10:28:37.2056520Z 0x600000a38270 SSL_write(0x7f9e2f0c0d46) -> OK
2023-07-23T10:28:37.2056900Z 0x600000a38270 SSL_write(0x7f9e2f0c2946) -> 3 (init finished)
...
2023-07-23T10:28:37.2105260Z 0x600000a38270 SSL_write(0x7f9e2f0c2946) -> OK
...
2023-07-23T10:28:37.2362380Z 0x600000a382a0 SSL_write(0x7f9e2f0c66d5) -> 3 (init finished)
...
2023-07-23T10:28:37.2366770Z 0x600000a382a0 SSL_write(0x7f9e2f0c66d5) -> 1
...
2023-07-23T10:28:37.2367240Z 0x600000a382a0 SSL_shutdown -> 1
...
2023-07-23T10:28:37.2367770Z failed to wait for TLS socket readable/writable: 0010C80000700000:error:0A00010F:SSL routines:ssl3_write_bytes:bad length:ssl/record/rec_layer_s3.c:370:
SSL_ERROR_SSL
(-> 1) failures occur after hitting SSL_ERROR_WANT_WRITE
( -> 3) from SSL_write
even though the passed write buffer seems to the the same. Maybe the socket is still not writable (enough)?
from sockpuppet.
After figuring out that the github actions used the host system's OpenSSL all the time, I got it to work with the self-build LibreSSL, which fails much less often.
Yet still: Test failure in OSX [1] and Test failure in MSVC [2]
[1]
11/14 Test #11: sockpuppet_tls_test .....................***Failed 2.18 sec
server listening at [::1]:8554
client client [::1]:49186client connected to server [::1]:49187 connected to server [::1]:8554[::1]:8554
0x600000afc3900x600000af4090 SSL_read -> SSL_read -> 2
[::1]:49188 connected to server [::1]:8554
0x600000af81b0 SSL_read -> 2
2
0x600000af4090 SSL_read -> 2
0x600000afc390 SSL_read -> 2
0x600000af81b0 SSL_read -> 2
0x600000afc6600x600000afc5d0 SSL_read -> SSL_read -> 22
0x600000afc540 SSL_read -> 2
0x600000af4090 SSL_read -> 2
0x600000afc390 SSL_read -> 2
0x600000af81b0 SSL_read -> 2
server sending to client [::1]:49188
server sending to client 0x600000afc5d0 SSL_read -> [::1]:49186
0x600000afc660 SSL_write(0x10b3cfe30) -> 23
0x600000afc540 SSL_write(0x10b3cfe30) -> 3
server sending to client [::1]:49187
0x600000afc660 SSL_write(0x10b3cfe30) -> OK
0x600000afc540 SSL_write(0x10b3cfe30) -> OK
0x600000afc540 SSL_shutdown -> 2
0x600000afc660 SSL_shutdown -> 2
0x600000af81b0 SSL_read -> OK
0x600000af4090 SSL_read -> OK
client [::1]:49188 received from server
client [::1]:49186 received from server
0x600000af81b0 SSL_read -> 0x600000af4090 SSL_read -> TLS connection closed
TLS connection closed
0x600000afc540 SSL_shutdown -> OK
0x600000afc660 SSL_shutdown -> OK
0x600000afc390 SSL_shutdown -> 2
0x600000afc5d0 SSL_write(0x10b3cfe30) -> OK
0x600000afc5d0 SSL_shutdown -> OK
0x600000afc390 SSL_shutdown -> 0x600000afc390 SSL_shutdown -> OK
client failed to receive
[2]
Start 11: sockpuppet_tls_test
11: Test command: D:\a\sockpuppet\sockpuppet\build\Release\sockpuppet_tls_test.exe
11: Working Directory: D:/a/sockpuppet/sockpuppet/build
11: Test timeout computed to be: 10000000
11: server listening at [::1]:8554
11: client [::1]:60183 connected to server [::1]:8554
11: client [::1]:60184 connected to server [::1]:8554
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780CD10 SSL_read -> 2
11: client [::1]:60185 connected to server [::1]:8554
11: 000002E9C780C550 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780CD10 SSL_read -> 2
11: 000002E9C780CD10 SSL_read -> 2
11: 000002E9C780CD10 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780CD10 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780C550 SSL_read -> 2
11: 000002E9C780C550 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780D110 SSL_read -> 2
11: 000002E9C780C650 SSL_read -> 2
11: server sending to client [::1]:60183
11: 000002E9C780C810 SSL_read -> 2
11: server sending to client [::1]:60184
11: 000002E9C780C810 SSL_write(00007FF738D9445C) -> 2
000002E9C780CD10 SSL_read -> 2
000002E9C780C810 SSL_write(00007FF738D9445C) -> 3
000002E9C780C810 SSL_write(00007FF738D9445C) -> OK
000002E9C780CD10 SSL_read -> OK
client [::1]:60184 received from server
000002E9C780C810 SSL_shutdown -> 2
000002E9C780CD10 SSL_read -> TLS connection closed
000002E9C780C810 SSL_shutdown -> OK
000002E9C780CBD0 SSL_read -> 2
server sending to client [::1]:60185
000002E9C780CBD0 SSL_write(00007FF738D9445C) -> 2
000002E9C780C550 SSL_read -> 2
000002E9C780CBD0 SSL_write(00007FF738D9445C) -> 3
000002E9C780CBD0 SSL_write(00007FF738D9445C) -> OK
000002E9C780CBD0 SSL_shutdown -> 2
000002E9C780C550 SSL_read -> OK
client [::1]:60185 received from server
000002E9C780C550 SSL_read -> TLS connection closed
000002E9C780CBD0 SSL_shutdown -> OK
000002E9C780D110 SSL_shutdown -> 2
000002E9C780C650 SSL_write(00007FF738D9445C) -> OK
000002E9C780D110 SSL_shutdown -> 000002E9C780D110 SSL_shutdown -> 2
000002E9C780C650 SSL_shutdown -> OK
000002E9C780D110 SSL_shutdown -> OK
client failed to receive
from sockpuppet.
The issue
clients did not receive echoed reference data on time
Assertion failed: (i < handshakeStepsMax), function Shutdown, file socket_tls_impl.cpp, line 262.
seen in OSX remains unsolved by #4 and will be tracked in #5.
Also generally, OpenSSL remains a big stretch on the general library interface (e.g. non-zero receive).
from sockpuppet.
Related Issues (7)
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 sockpuppet.