Hi Rowan, > Just throwing in an observation in case it hasn't already occurred > to you - the "Address already in use" error might well not be a picolisp > or C9 problem at all, but that you are reconnecting to the socket > without having set the SO_REUSEADDR option (or equivalent). Without it > you can't reconnect to an already connected socket, e.g. for about 90 > seconds on Linux, or similar duration on other platforms (must wait
That's right. But in this case the function in question ('port') does indeed set this option. However, it still might be the case that some other service is already listening at that port, perhaps even some not-yet-terminated instance of your application. You can find out the culprit with $ lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME picolisp 20278 app 16u IPv6 2098603 0t0 TCP *:http-alt (LISTEN) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe