SSLSocket#syswrite no longer raises IOError after IO#close
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start by tracing how SSLSocket#syswrite reaches SSL_write() and how the underlying socket's close is handled, using the reported regression from #1105 as context. Reproduce the supplied UNIXSocket pair example, then add or locate a regression test that checks writing after close raises IOError; the issue names no source or test files, so expect to read around the socket implementation first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since bf1a41904e051d31dbb1648019787fe336cec1c8 (#1105), SSLSocket#syswrite no longer raises IOError after IO#close on the underlying socket. SSL_write() still uses the old file descriptor number, so if a new socket gets the same number, the TLS record goes to the new socket.
require "openssl"
require "socket"
key = OpenSSL::PKey::EC.generate("prime256v1")
cert = OpenSSL::X509::Certificate.new
cert.public_key = key
cert.not_before = cert.not_after = Time.now
cert.sign(key, "SHA256")
ctx = OpenSSL::SSL::SSLContext.new
ctx.add_certificate(cert, key)
s1, s2 = UNIXSocket.pair
Thread.new { OpenSSL::SSL::SSLSocket.new(s1, ctx).accept }
ssl = OpenSSL::SSL::SSLSocket.new(s2)
ssl.connect
fd = s2.fileno
s2.close
a, b = UNIXSocket.pair
a.fileno == fd #=> true
ssl.syswrite("hello") #=> 5
b.read_nonblock(100) #=> "\x17\x03\x03\x00\x16..."
I checked the open PRs, but none of them corrects the issue.
- Lenguaje dominante
- C
- Estrellas
- 276
- Forks
- 205
- Merge medio
- 21 h 17 min
- PR fusionados (30 d)
- 17
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ruby/openssl
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Add OpenSSL::SSL::SSLContext#client_hello_cb= (binding for SSL_CTX_set_client_hello_cb())Posiblemente ocupada @kou la tomó hace 37 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
ruby/openssl#1125 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
Documenting how to use OpenSSL::SSL::SSLContext in PQC use casesPosiblemente ocupada @junaruga la tomó hace 23 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
ruby/openssl#1118 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
Expose XOFs like SHAKE128 and SHAKE256Posiblemente ocupada @rhenium la tomó hace 133 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ruby/openssl#1082 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
ruby/openssl#1075 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ruby/openssl
Issues similares
-
isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition rootPosiblemente ocupada @tuhaihe la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudberry#2356 ·
Los mantenedores suelen responder en 2 días
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
-
Add Royalty funding badgeAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
crosspoint-reader/crosspoint-reader#4535 ·
Los mantenedores suelen responder en 1 día
-
[core] Clients never advertise RNS_UD_CS_SUPPORT_ERRINFO_PDU, so a conforming server can't send them Set Error InfoPosiblemente ocupada @akallabeth la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
FreeRDP/FreeRDP#14230 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Wrong release linkedAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Genymobile/scrcpy#7178 ·
Los mantenedores suelen responder en 3 días