sharwell
sharwell
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
I won't be able to help with this as I'm not familiar with these APIs. I haven't done any network I/O in probably almost 10 years
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
I have no experience with that API
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
as soon as we define it, it becomes a guarantee that we have to preserve basically forever
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
it's fairly common in compiler work to leave things as undefined
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
because we chose to not attempt to define or support it
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
undefined means you cannot infer anything about the behavior
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
then it would be a question for dotnet/runtime, different team
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
1) IO behavior is undefined. SocketException is allowed. Not having a SocketException is also allowed.
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
what question was that?
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
basically there is nothing left to gain. it works as close to perfect as anyone could want
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
writing unit tests is so easy and so reliable for debugging analyzers and source generators that all the work on looking at other approaches became irrelevant
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
that's not the way we look at it
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
once you write a unit test, you can debug the test and it will stop at breakpoints
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
what do you mean "couldn't get the diagnostic outside"?
136 replies
CC#
Created by stn on 9/13/2024 in #help
SocketException, TCPListener, TCPClient reason?
IO, in general, will not work
136 replies
CC#
Created by QzL on 4/4/2023 in #help
❔ Incremental source generator not called with docker
The source generator references Microsoft.CodeAnalysis.CSharp. The test project needs to explicitly reference Microsoft.CodeAnalysis.Workspaces.CSharp of the same version.
52 replies