spawnblock so that it doesn't block the rest of the program. Then later I'm trying to close it with the
#closefunction outside of the
spawnblock later on. However despite that it still leaves the socket open and listening. I'm assuming it needs to be closed within the
spawnblock but I'm wondering if anyone has some insight on that.
I just want crystal on windows so I can do some gamejams using crsfml ^_^. I am not interested in the networking bits, just hate the effort it requires to set up crystal on windows currently.
i have to say, a one-time hurdle that takes up an hour at most doesn't seem reasonable to give up at, considering how big of a followup you're abstaining from.
Before and after close
p http.@sockets.map(&.closed?) p http.@sockets # or
@didactic-drunk it's actually returning empty arrays for me before and after. It's kind of odd. Maybe something is happening after the
#listen method that is causing some issue?
# Before Close   # After Close