<Shorttail>
Is there a way of getting a stacktrace?
endformationage has joined #ponylang
<vaninwagen>
you can get one by running your program in a debugger (gdb or lldb)
<vaninwagen>
The closest you get to that in pure pony is by using __loc, which will give you the source location where you place it
endformationage has quit [Quit: WeeChat 1.9.1]
Shorttail has quit [Quit: Page closed]
inoas has joined #ponylang
PrsPrsBK has quit [Quit: PrsPrsBK]
ichimaru has joined #ponylang
<ichimaru>
test
<ichimaru>
I can speak \o/
<ichimaru>
This might be a question not specific to pony, I hope it's ok to ask here. When a TCPConnection no longer works because of a network partition, will the `closed` function be called?
inoas has quit [Ping timeout: 240 seconds]
ExtraCrispy has joined #ponylang
endformationage has joined #ponylang
<SeanTAllen>
ichimaru: it will be called when the OS closes the socket. so, there isn't a "yes/no" answer to that question. its a "it depends".
<ichimaru>
SeanTAllen: so, I can't depend on it and should use a heartbeat and timeout instead?
<SeanTAllen>
you definitely can not depend on a socket being closed as a way to assure liveness
<SeanTAllen>
at minimum, you need a heartbeat system.
<SeanTAllen>
what you are really talking about is failure detection. thats a deep and complicated subject, most folks stop at heartbeats being "good enough" for their particular problem.