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
If you run this code and make a curl on it, the socket is never closed by the server.
If i add .ensuring(putStrLn("Connection closed")) before use, i see the log happened in console, but the socket remains not closed, the curl request don't end, & a lsof cmd on curl process & server process, show that the socket stay opened.
From the example given in https://zio.github.io/zio-nio/docs/essentials/essentials_sockets#creating-sockets
If you run this code and make a curl on it, the socket is never closed by the server.
If i add
.ensuring(putStrLn("Connection closed"))
beforeuse
, i see the log happened in console, but the socket remains not closed, the curl request don't end, & alsof
cmd on curl process & server process, show that the socket stay opened.The real code i use for my test is :
The text was updated successfully, but these errors were encountered: