This was working fine literally a day or so ago, and now it isn't. I have absolutely no idea why, and I've tried on a vanilla installation.
TCPObject::onDisconnect is not being called when I disconnect the TCPObject manually via TCPObject.disconnect();.
If the connection times out, though, for example, onDisconnect is called.
==>new TCPObject(h);
==>function h::onConnected(%this){echo("connect");}
==>function h::onDisconnect(%this){echo("disconnect");}
==>h.connect("blockland.us:80");
connect
==>h.disconnect();
==>h.connect("blockland.us:80");
connect
disconnect
Is there something goofy I'm missing here?