jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
jemc has joined #ponylang
boid has joined #ponylang
nyarum has joined #ponylang
jemc has quit [Ping timeout: 246 seconds]
nyarum has quit [Ping timeout: 240 seconds]
aav has quit [Ping timeout: 260 seconds]
boid has quit [Ping timeout: 240 seconds]
Arjan has quit [Ping timeout: 245 seconds]
aav has joined #ponylang
Arjan has joined #ponylang
jemc has joined #ponylang
boid has joined #ponylang
virtual_lark has joined #ponylang
jemc has quit [Ping timeout: 246 seconds]
graaff has joined #ponylang
TheNet has joined #ponylang
TheNet has quit [Client Quit]
vaninwagen_ has joined #ponylang
nyarum has joined #ponylang
graaff has quit [Quit: Leaving]
nyarum has quit [Remote host closed the connection]
bweez_ has quit [*.net *.split]
doublec has quit [*.net *.split]
papey_lap has quit [*.net *.split]
dom96 has quit [*.net *.split]
BlackYoup has quit [*.net *.split]
hakvroot_ has quit [*.net *.split]
cjh` has quit [*.net *.split]
<Candle> Has anyone used net/http HTTPClient for multiple requests since twonotes change earlier this year? It's either impossible or just really a convoluted process or I've not understood how to use it. (long write-up: https://gist.github.com/CandleCandle/260a284ece6d2e99520cfbd99798e739 )
virtual_lark has quit [Ping timeout: 246 seconds]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 260 seconds]
doublec has joined #ponylang
bweez_ has joined #ponylang
virtual_lark has joined #ponylang
dom96 has joined #ponylang
nyarum has joined #ponylang
virtual_lark has quit [Ping timeout: 258 seconds]
virtual_lark has joined #ponylang
cjh` has joined #ponylang
hakvroot_ has joined #ponylang
BlackYoup has joined #ponylang
papey_lap has joined #ponylang
zevlg has quit [Remote host closed the connection]
_andre has joined #ponylang
nyarum has quit [Remote host closed the connection]
<SeanTAllen> Candle: sounds like a bug to me. infitite loops are not a good thing. can you open an issue for discussion.
vaninwagen_ has quit [Ping timeout: 258 seconds]
CcxWrk has quit [Ping timeout: 240 seconds]
boid has quit [Ping timeout: 240 seconds]
nyarum has joined #ponylang
<Candle> SeanTAllen: I'll convert that gist to a ticket when I get a chance.
<SeanTAllen> thank you!
jemc has joined #ponylang
nyarum has quit [Remote host closed the connection]
nyarum has joined #ponylang
<Candle> SeanTAllen: https://github.com/ponylang/ponyc/issues/1929 linked to the gist as it contains the code that reproduces the issue.
TwoNotes has joined #ponylang
TwoNotes has left #ponylang [#ponylang]
<jemc> Candle: I haven't used the `HTTPClient` class at all really, but have you considered making your handler so that it can handle multiple request/responses?
<Candle> jemc: That sounds like option (1) in the solutions section of the gist.
<Candle> The HandlerMaker's apply method is only called once (per TCP/TLS connection), as the result of it is cached against the scheme & host & port. I'm sure that it's possible to make it handle multiple, but then that doesn't seem like the intended design.
nyarum has quit [Remote host closed the connection]
<jemc> Candle: IIRC HTTP 1.x does not support having multiple outstanding requests on the same connection - so I don't understand why you need a map/stack of outstanding requests on the connection
<Candle> That's true, you can't have multiple in-progress requests in 1.x. The gist has an ApiHttp which is intended to abstract the HTTP'ness of the API away (aids testing & code clarity & ...) It is possible to make the Handler call a behaviour of that actor, but then you'd need to store the callback somewhere while waiting for that call; hence the Map - what happend when ... cont...
<Candle> ... you get two calls to the 'get_data' behaviour before one of the http requests has completed and the responding behaviour is called from the Handler? You need to store the callbacks in a map with something like the Payload as the key.
CcxWrk has joined #ponylang
polishdrake has joined #ponylang
polishdrake has quit [Quit: Page closed]
CcxWrk has quit [Read error: Connection reset by peer]
CcxWrk has joined #ponylang
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 260 seconds]
boid has joined #ponylang
nyarum has joined #ponylang
pduncan has quit [Ping timeout: 258 seconds]
virtual_lark has quit [Remote host closed the connection]
Matthias247 has joined #ponylang
TheLemonMan has joined #ponylang
aav has quit []
nyarum has quit [Remote host closed the connection]
nyarum has joined #ponylang
aav has joined #ponylang
nyarum has quit [Ping timeout: 240 seconds]
vaninwagen_ has joined #ponylang
_andre has quit [Quit: leaving]
vaninwagen_ has quit [Ping timeout: 240 seconds]
nyarum has joined #ponylang
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
nyarum has quit [Remote host closed the connection]
Matthias247 has quit [Read error: Connection reset by peer]
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang