<Shorttail>
Is there an easy way to terminate a pony program?
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
vaninwagen has joined #ponylang
<vaninwagen>
Shorttail: what exactly do you mean? From within the same program? Or from the outside via a KILL signal or something?
<Shorttail>
vaninwagen: Yeah from the same program. I guess just calling exit with ffi would work
<vaninwagen>
Shorttail: that is the barbaric way, but works
<vaninwagen>
Shorttail: you have some actors still running or some timers still running or something listening to the network that prevents the runtime from shutting down?
<Shorttail>
vaninwagen: It's more of a prototyping thing. Sometimes I don't want to bother designing a proper shutdown thing. If it hits a branch I didn't finish, I just want a message and an instant kill. Barbaric is a good word
ExtraCrispy has quit [Remote host closed the connection]
ExtraCrispy has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
aturley has joined #ponylang
pzel has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Quit: khan]
sheerluck has joined #ponylang
<dave24>
in the TCPConnectionNotify `closed` callback, `conn.remote_address().name()` seems to always fail. Do I have to get the name elsewhere and store it or something?
<aturley>
`remote_address()` calls `getpeername()`, which i believe requires that the socket be connected.
<SeanTAllen>
it does indeed.
<aturley>
so yeah, if you need the name in `closed` then you'll probably want to store it yourself.
<SeanTAllen>
once the connection is closed, it sort of makes sense that remote_address would fail
<SeanTAllen>
agree with aturley there.
<SeanTAllen>
you can store it in your notify if you need it later