Hi

Could anybody explain me why UpgradedServletInputStream does fail with
EOFException in non-blocking mode instead of returning -1 ? Where can I
find exact Servlet API specification about this async API behaviour?

java.io.EOFException
    at 
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1159)
    at 
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1130)
    at 
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1067)
    at 
org.apache.coyote.http11.upgrade.UpgradeServletInputStream.read(UpgradeServletInputStream.java:150)
    at java.io.InputStream.read(InputStream.java:101)
    at io.ktor.servlet.Reader.loop(ServletReader.kt:38)

Reply via email to