spoussa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zkis has quit [Ping timeout: 240 seconds]
ceolin[AWAY] is now known as ceolin
anselmolsm has joined #soletta
otaviobp has joined #soletta
Sachiel has joined #soletta
zehortigoza has quit [Remote host closed the connection]
zehortigoza has joined #soletta
<gabrielschulhof>
otaviobp: Hey! I'll merge that PR, but I found another bug too ...
<gabrielschulhof>
If you call sol_oic_client_del() from the request callback it goes into an infinite recursion ...
<gabrielschulhof>
I think we need to protect the struct sol_oic_client * with a reentrant as well.
<gabrielschulhof>
otaviobp: Javascript brings out the weirdest things, eh?
<acidx>
gabrielschulhof: is that function exposed to JavaScript?
<gabrielschulhof>
Yes.
<gabrielschulhof>
The whole API is exposed.
<gabrielschulhof>
Besides, it should be possible, even from C>
<gabrielschulhof>
Like, if you want to write an app that just issues a query and then quits, why should you need to sol_idle_add(sol_oic_client_del, client)?
bottazzini has joined #soletta
<gabrielschulhof>
I mean quits when it gets the response.
<acidx>
I don't know what's the rationale behind exposing even functions like this, since JavaScript has GC and this could potentially be hooked up to that
<acidx>
(it should be possible to do this from C as well, but since there are many other ways to shoot your feet with a shotgun in C...)
<gabrielschulhof>
acidx: The idea with JS exposure is to free as much as possible as soon as possible, since you have access to the pointer anyway. The GC could keep stuff around unnecessarily.
<gabrielschulhof>
As for C, I don't see how having many footguns reduces the need for having this scenario work correctly.
<gabrielschulhof>
In fact, I would say it increases the need for this to work, because forgetting to wrap the cleanup in an idler is one more footgun,
glima has joined #soletta
kamidi_preetham has joined #soletta
aguedes has joined #soletta
aguedes has quit [Remote host closed the connection]
bdilly has joined #soletta
aguedes has joined #soletta
zkis has joined #soletta
<gabrielschulhof>
otaviobp: /window 2
<gabrielschulhof>
Sorry :)
bsmelo has joined #soletta
zehortigoza_ has joined #soletta
zehortigoza has quit [Remote host closed the connection]
zehortigoza_ has quit [Client Quit]
zehortigoza has joined #soletta
bottazzini has quit [Remote host closed the connection]
spoussa has joined #soletta
bottazzini has joined #soletta
spoussa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spoussa has joined #soletta
zkis has quit [Ping timeout: 276 seconds]
zkis has joined #soletta
lvladi has quit [Ping timeout: 244 seconds]
lvladi has joined #soletta
lvladi has quit [Ping timeout: 272 seconds]
lvladi has joined #soletta
spoussa has quit [Ping timeout: 264 seconds]
zkis has quit [Ping timeout: 246 seconds]
spoussa has joined #soletta
spoussa has quit [Ping timeout: 240 seconds]
kamidi_preetham has quit [Ping timeout: 250 seconds]
kamidi_preetham has joined #soletta
otaviobp has quit [Quit: WeeChat 1.5]
ceolin is now known as ceolin[AWAY]
kamidi_preetham has quit [Quit: Page closed]
aguedes has quit [Remote host closed the connection]
ceolin[AWAY] is now known as ceolin
glima has quit [Remote host closed the connection]
bdilly has quit [Quit: bdilly]
anselmolsm has quit [Remote host closed the connection]