You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.5.9 and above (this part of the vertx code has not been changed for a while now so likely is in older versions too)
Context
Using the Http2Client (via WebClient), the createStream fails due to the connection being closed before stream is created, thus init(stream) is never called. In createStream the call to create the child stream Http2Stream stream = this.conn.handler.encoder().connection().local().createStream(id, false); fails with the connection being closed error.
At first glance, everything is ok, exception is handled, handler is called, yet while using virtual threads, which always causes writes to queue due to the non even-loop condition !eventLoop.inEventLoop(), the stream appears to try writing to a null stream.
Version
4.5.9 and above (this part of the vertx code has not been changed for a while now so likely is in older versions too)
Context
Using the Http2Client (via WebClient), the
createStream
fails due to the connection being closed before stream is created, thusinit(stream)
is never called. IncreateStream
the call to create the child streamHttp2Stream stream = this.conn.handler.encoder().connection().local().createStream(id, false);
fails with the connection being closed error.vert.x/src/main/java/io/vertx/core/http/impl/Http2ClientConnection.java
Lines 588 to 602 in 00fa556
vert.x/src/main/java/io/vertx/core/http/impl/Http2ClientConnection.java
Lines 605 to 628 in 00fa556
where init stream is set to be used by the
VertxHttp2Stream
At first glance, everything is ok, exception is handled, handler is called, yet while using virtual threads, which always causes writes to queue due to the non even-loop condition
!eventLoop.inEventLoop()
, the stream appears to try writing to anull
stream.Do you have a reproducer?
Simulate connection closure while setting up the connection. Use virtual threads.
Extra
Windows Server, Temurin JDK 21.0.3
The text was updated successfully, but these errors were encountered: