I am not sure if this is a bug. But I observed now that,
- I create an instance and the instance opens some ports (22, etc).
- I associate a public IP
- I connect to some port (tcp) through public IP
- When I diassociate public IP, no new connections are accepted but open connections does not shutdown, I still can read and write bytes.
To test it, create an instance, associate public IP, then open a ssh connection and then disassociate IP.
I guess that If I reassociate to another instance the sessions should be closed, but I have not tested it.