Make it possible to have stateful connections
Los mantenedores suelen responder en 2 días
@Frando ya está trabajando en esto.
Desde el 27/10/2026.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
Línea de trabajo
Comienza con el ejemplo auth.rs y las implementaciones de RemoteConnection para irpc sobre QUIC e irpc-iroh; después, sigue cómo irpc::Client gestiona las reconexiones. Define un mecanismo del ciclo de vida de la conexión para una configuración con estado y verifica que la autenticación se envíe antes de las solicitudes de la aplicación después de cada reconexión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A typical usecase involves authenticating to a remote server.
I first thought this would be easy enough: See this example https://github.com/n0-computer/irpc/blob/main/irpc-iroh/examples/auth.rs
There's a Auth message that contains whatever authentication token you are using. The server expects the first message on a connection to be that message, and aborts the connection if not or if the token doesn't verify. From the server side, all is good.
On the client side however, it seems to be fine to just issue an Auth rpc call when constructing a client. However, it is not: the RemoteConnection impls for both irpc over quic and irpc-iroh support reconnects-on-demand: If the previous connection was aborted by the server in-between (e.g. because the server was restarted), irpc will reconnect to the server with the same args (alpn and node addr) than in the initial connection. The request submitted by the application will then be sent on the new connection - which will fail, because the server expects an Auth message as the first message on each connection.
It is currently completely invisible to the irpc::Client and application code if and when such reconnections happend, therefore there's no way currently to "send an Auth request first whenever a reconnect happens".
Fixing this is quite important to me, I have multiple uses of irpc that would need this. The only alternative currently is to send a token with each and every request, which is wasteful and cumbersome.
- Lenguaje dominante
- Rust
- Estrellas
- 59
- Forks
- 10
- Merge medio
- 3 d 15 h
- PR fusionados (30 d)
- 21
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 n0-computer/irpc
-
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
n0-computer/irpc#178 ·
Los mantenedores suelen responder en 2 días
-
Would be nice to have a way to get the current RTT (and possibly other information) from the underlying connectionPosiblemente ocupada @rklaehn la tomó hace 12 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
n0-computer/irpc#95 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Rate limiting for irpc (quinn and iroh) server sideQuizá libre de nuevo @rklaehn la tomó hace 281 días y no hay ningún pull request abierto. Abiertoenhancement
n0-computer/irpc#93 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 45/100
n0-computer/irpc#49 ·
Los mantenedores suelen responder en 2 días
-
Add connection idAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
n0-computer/irpc#13 ·
Los mantenedores suelen responder en 2 días
Todos los issues de n0-computer/irpc
Issues similares
-
area:web kind:bug priority:p2 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
sims1253/ry#931 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
sims1253/r-typeshed#140 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
storytold/craft-libs#2867 ·
Los mantenedores suelen responder en 1 día
-
help wanted needs investigation priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100