« first day (4542 days earlier)      last day (389 days later) » 

8:17 AM
@Danack Nope :/ But he's active on GitHub, so he seems to be ok. github.com/cmb69
 
 
2 hours later…
10:11 AM
@Danack I could do it... but I don't think I will.
 
 
5 hours later…
I read one this morning at 9am?
 
3:08 PM
@bwoebi Are you referring to my post on Mastodon?
@Trowski The reason I did that is because we're setting the content-type to application/json when using the client builder, and that same client is injected everywhere, but on this one request, we need to use the form-data media type. Here's what happens when we set that content-type using the builder: play.phpsandbox.io/amphp/http-client/wlJnA5OJNPKQBX89
but, yeah, when I tried overwriting it, it clearly didn't work, like here: play.phpsandbox.io/amphp/http-client/vVNa9E21yY5Ozyrg
I just realized that using JsonBody() automatically adds application/json, so I don't need to set it on the HTTP client.
Removing that did the trick!
@bwoebi Nevermind... you're referring to the datadog integration... I haven't given it a try yet, but I did run into another segmentation fault that was the result of a fibers bug in PHP 8.2.3, so I upgraded to 8.2.4, and now it works. I'll try the datadog integration again and let you know if it's still crashing.
 
3:26 PM
@kelunik I've never granted permission for anything for PHP related stuff. I'm not involved. We did talk last Fall one time, but then my life went down hill and I couldn't continue.
 
 
1 hour later…
4:30 PM
@ramsey ah okay
 
4:53 PM
o/
 
@Trowski @kelunik Am I reading this correctly that the HttpClientBuilder automatically configures HTTP clients (by default) to follow redirects up to 10 times and to retry a request up to 2 times? github.com/amphp/http-client/blob/…
 
5:23 PM
@ramsey Yes, that's correct.
 
@Trowski Cool. Just verifying. Those are good defaults, but I was setting my own because I didn't realize y'all had set defaults. :-)
So, I no longer need to set my own.
 
We're working on better docs for all the v3 compat. libs. We'll have to make such things clearer.
I believe @kelunik is considering dropping the stream factory from request bodies, instead using a ReadableStream directly. Most requests with a body cannot be retried, so there's not usually a reason to recreate the request body.
 
5:46 PM
Any idea why RecursiveIteratorIterator + RecursiveDirectoryIterator would be running significantly slower than other peoples code? I'm just trying to recursively count files in a directory, and other people seem to be able to scan 100,000 files/second while the max I've achieved is 600/sec. Is it just that my system is slow, or is there something I can do to optimize it? I tried DavidMars code from this link : stackoverflow.com/questions/640931/…
 
6:36 PM
@SlamJammington Do you have an SSD? Do you have some form of Windows anti-virus running?
 
6:59 PM
@Danack I've never looked at our actual server hardware, but I really should of thought of that. I'll double check
I also just wanna say thanks Danack, I've asked questions in here a bunch of time and it seems like you always have something useful to say
 
 
2 hours later…
9:15 PM
o/
 
9:58 PM
@SlamJammington no worries......somewhat interesting questions make a nice change from "please debug my code for me" questions...
 

« first day (4542 days earlier)      last day (389 days later) »