« first day (2203 days earlier)      last day (2742 days later) » 

9:00 AM
or if a member deactivates their account, i don't want the user's images to show up anymore. What would be your recommendation? serve files over php or just link to them, and move them when the image has to disappear temporarily?
 
Just serve them over php
You can always use X-Sendfile when you don't want php to actual serve it but still let it control it
 
oh how cool.
 
same deal
only more errors this time
 
god damnit
 
> PHP Warning: include(): Failed opening '/srv/www/Jeeves/vendor/composer/../amphp/socket/lib/ConnectException.php' for inclusion
 
9:03 AM
fuck it
Disable opcache on cli for shits and giggles
 
> PHP Warning: shell_exec(): Unable to execute 'lsof -p 19725' in /srv/www/Jeeves/vendor/amphp/socket/lib/functions.php on line 108
@bwoebi
wait...
could it be memory limit hit?
or something?
 
Write a plugin to display the config :P
 
if it's memory limit , add the bit of code that has it run in the background instead of wait for finish?
 
It's on the CLI actually where there is no limit by default (?)
 
no timelimit
 
9:07 AM
!!docs memory_limit
oh right
 
think mem still applies
 
:-P
 
@DaveRandom hehehe
 
Anonymous
@DaveRandom lol
 
However if it is mem limit it should tell you so @DaveRandom
 
9:09 AM
Well I thought so
 
!!order pizza
 
why would shell_exec() fail?
 
Doesn't hurt to look into my suspected leak at some point though. I still think it's odd it uses 256M
@DaveRandom User permissions?
As in shell_exec works just fine it's the lsof that fails
 
@DaveRandom add 2>&1 to redirect stderr to stdout
 
@PeeHaa @bwoebi I know what it is
 
9:13 AM
\o/
 
@DaveRandom use exec and get the return value
 
@DaveRandom Should I say sorry? :)
 
moment, just reminding myself how it works so I don't say something that makes no sense
 
kk
 
Well, long of the short of it is: ulimit
 
Wes
9:15 AM
@JayIsTooCommon i heard you like pets i.imgur.com/DZM4LRM.jpg
4
 
@DaveRandom oh makes sense
 
Wes
at least it seems you are dying happy
 
Somewhere we are not destroying handles
 
Which also explains some of the mem leaks I assume
 
hey there
 
9:16 AM
uwat?
 
Oct 27 08:52:10 149-210-224-55.colo.transip.net php[19725]: int(0)
Oct 27 08:52:10 149-210-224-55.colo.transip.net php[19725]: string(0) ""
Oct 27 08:52:10 149-210-224-55.colo.transip.net php[19725]: PHP Warning:  shell_exec(): Unable to execute 'lsof -p 19725' in /srv/www/Jeeves/vendor/amphp/socket/lib/functions.php on line 108
Oct 27 08:52:10 149-210-224-55.colo.transip.net php[19725]: Warning: shell_exec(): Unable to execute 'lsof -p 19725' in /srv/www/Jeeves/vendor/amphp/socket/lib/functions.php on line 108
That int(0) and string(0) "" is the errno/errstr from a stream_socket_client() call that returned false
 
you probably want to try closing some file handles :)
 
Then shell_exec/include also both require creating handles
 
PeeHaa, if I understand the info I found online for x-sendfile, it basically drops off php's job and sends a file. So the php side is quick to do the job, launches x-sendfile, and doesn't wait for the client to finish downloading for the php script to end, so it frees up resources quick. do i understand this correctly?
 
@Darius It basically tells the webserver to server the file
 
9:18 AM
@Leigh Right, but that should be happening automagically
[root@149-210-224-55 Jeeves]# cat /proc/sys/fs/file-max
794062
:-S
 
If I develop and hybrid app is it a good practice having my front-end stuff in www/myfrontend and my backend stuff in www/mybackend and point mydomain.com at my front end stuff and call my backendstuff with api.mydomain.com ?
 
kk. thank you!
 
that's... a lot of open handles we got there
 
Oh my sweet jesus. Email from a customer saying an email URI isn't working. Check the url
 
TL;DR: PHP: yes user is allowed to get it -> hey webserver serve this file to users will ya
 
9:18 AM
http://localhost
Who the hell hard codes this stuff.
 
@Sean developers
 
@DaveRandom should it? Are you maintaining references to objects that have open handles, so not getting garbage collected, and no automagic
 
@DaveRandom Hole open file handlers batman
 
perfect, thanks. Any precautions for the unexperienced developer(me) ?
 
@Leigh When I say automagically I mean amp should be dealing with it
 
9:19 AM
@Darius Nope. Just read the docs and you will be fine :)
 
Actually, an open handle will maintain the reference, iirc. The only automagical close will be on process termination
 
like, can i restrict in the config file of what folders its allowed to access?
 
we don't manage handles at all
 
kk
great
thank you!
 
@Darius You will have full control because php is managing the access
 
9:19 AM
agreed. kk
 
Right, well, do an lsof and see what the open handles point to then :p
 
gonna test it, excited.
 
@Leigh errr about that
:P
 
:D
 
@Leigh Warning: shell_exec(): Unable to execute 'lsof -p 19725' in
:-P
 
9:20 AM
and what about doing it from the shell rather than php
 
err... oh yeh
 
Anonymous
@Wes hahahah beautiful <3
 
@PeeHaa what makes a request to amazon?
oh wait it's aws
still, something is making periodic requests to something on aws
There are a shitload of sockets in CLOSE_WAIT
 
From memory they'll be stuck like that if the read buffer isn't drained
 
I have no idea what's generating the requests in the first place though
 
9:24 AM
@DaveRandom wat
nothing?
haxzors?
 
> 149-210-224-55.colo.transip.net:42014->ec2-107-22-212-99.compute-1.amazonaws.com‌​:https (CLOSE_WAIT)
 
aha
 
lots of different IP addresses
 
Is it in specific intervals that you can see?
Can it be github?
 
Dunno I'm looking at the handles, but I have seen a few request cycle dtors when nothing seems to be happening
 
9:26 AM
Yes that's github
 
@PeeHaa ooohhhhh right
 
The status page
!!blame @JayIsTooCommon \o/
 
Anonymous
I just wanted to be noticed
 
Also I am doing a lot of requests to github too for feedr, but that's another page
 
:-D
@PeeHaa this is specifically within the jeeves process
 
9:28 AM
@DaveRandom In that case we can probably blame @JayIsTooCommon
 
private function getGithubStatus()
{
    /** @var HttpResponse $response */
    $response = yield $this->httpClient->request('https://status.github.com/api/last-message.json');
    if ($response->getStatus() !== 200) {
        return false;
    }
    return json_decode($response->getBody());
}
I suspect it's that return false;
 
That doesn't make sense to me
Let's just blame bob
 
me neither
ping @kelunik
Although...
 
tension rises
 
<thinking>
 
9:32 AM
This better be good
 
Anonymous
wait, GitHub status is causing the crashing??
 
s/GitHub status/your shoddy job
 
Anonymous
welp
 
But I suspect some nice bug somewhere else though :D
 
I think the bug will be in artax
 
9:35 AM
Also @DaveRandom is thinking now which is kinda scary in itself
@DaveRandom Not in socket?
 
maybe but I think we'd have seen it before now
 
Place you bets people!
You'll also be able to place your bet on the git blame!
 
I don't know what manages the resources in artax, but obviously something is not getting dtor'd
CLOSE_WAIT is when we have received a FIN from the other end but not sent one ourselves
 
No idea how tcp works. Sounds like a job for @Danack
badumtish
 
applause
 
9:39 AM
rejoice
 
OK time for some echo-based debugging!
 
:P
 
PeeHaa... x-sendfile is great.
 
Just wait til you try y-sendfile
 
love how in apache conf i can deny access to parent folders so it serves a blank file instead of scary stuff
 
9:42 AM
\o/
 
lol
 
@DaveRandom Is that the thing that can't drive?
 
@DaveRandom dunno if helpful stackoverflow.com/questions/19091319/…
 
@Gordon yes and no. Right problem, only our is way more complex because of the number of components involved :-/
 
I had hoped it somehow boiled down to how you connect the socket
 
9:45 AM
It's because something its not being dtor'd somewhere, because some codepath somewhere is keeping a reference where it shouldn't
I think
either that or a listener is being unregistered prematurely
However looking at the logs I think that there is some code path where RequestCycle doesn't get dtor'd
Because I should see that every 15 seconds and it's less regular than that
Also I'm thinking that repeat() is probably not the best approach in this case
 
Why not?
 
I think we'd be better doing resolve($this->someLoopingGenerator()) with yield new Pause
 
Why?
 
@PeeHaa apart from anything else, if github takes 14 seconds to respond we don't then want to poll 1 second later
 
Fair enough
 
9:49 AM
Also it will give us a saner exception handling path I think
 
@DaveRandom pong
 
@kelunik is there anything that jumps out at you about github.com/Room-11/Jeeves/blob/master/src/Plugins/… this mechanism which would stop things from being properly cleaned up in artax?
We have a shitload of handles in CLOSE_WAIT being generated by that
 
@DaveRandom That one should be fine. I had issues with CLOSE_WAIT before, I'll have a look.
 
ThW
Has anybody documentation/examples for private properties in a php extension class?
 
9:56 AM
user image
5
 
hehehe
 
I heard that vim users wouldn't be happy because of missing ESC
 
at this point it's all just rumors
then again, Apple lately has been doing a lot of dumb shit
 
Anonymous
yeah, real dumb shit. Fucking annoying
 
It's not dumb when it is courageous
 
10:04 AM
riiiiiight
 
Basically just use ZEND_ACC_PRIVATE in the visibility modifiers
 
Hello everybody,
I have a next situation which I cannot find decision:
I use reactPHP and socket.
When I send more data via websocket the server never receive it.
The strange is that on localhost it works, but when I test it on VPS it doenst works. What can be the reason?
 
However @ThW usually people put a typed element in a struct
 
Just had a meeting about why I'm so negative about having so many meetings... fml
 
lol
 
10:05 AM
@Anton_Sh are you getting any error message in your server's error log?
@Leigh you probably should look for a different job
 
\o
 
@tereško Nah the perks here are pretty good. Like, free beer
 
no. I found that reactphp use stream_socket_recv but I test with the same amount of data at localhost and at vps. so the problem is maybe in php.ini (I am not sure)
 
moin
 
so the data which i send and the code is the same of localhost and on vps So the question is where can be the differences?
 
10:09 AM
4 mins ago, by tereško
@Anton_Sh are you getting any error message in your server's error log?
Stop guessing
 
No These is no errors
 
And you are sure you enabled full error reporting?
Also debug it to make sure that the thing that goes wrong is actually what you think it is
 
wait...
 
yes, they are enabled.
But how to debug it? I have event in react php which is $socket->on('data') and the code nevers go there if the message is too log
 
@kelunik does return $generator actually work with repeat()?
 
10:15 AM
@DaveRandom I didn't hear the magic word
 
@DaveRandom Otherwise it wouldn't even make any requests.
 
ThW
@DaveRandom @DaveRandom thanks, that helps.
 
@kelunik no, but it would get as far creating handles
 
I have seen the thing making request cc @JayIsTooCommon
 
@DaveRandom No, why should it do that? Generators aren't primed.
 
ThW
10:18 AM
@DaveRandom because the property is some overhead and without need for an external access it is not needed?
 
@kelunik oh right, I keep forgetting that for some reason
 
@DaveRandom Could you test whether it's related to the Connection: keep-alive not having a timeout?
 
@ThW right, there's a hash lookup cost if you use the property table, if you intern it (see uses of this for an example) then it's just casts and pointer magic
@kelunik Presumably if I just dump out the headers that will give you enough?
 
@DaveRandom I know that status.github.com returns Connection: keep-alive, but doesn't define a timeout. I suspect that Artax just doesn't close the socket in that case.
 
@kelunik that would make sense, since the open handles were I think all different IP addresses
 
10:23 AM
@PeeHaa Do you have an idea what can be the reason?
 
Should set a sane limit on keeping handles alive in the client, like 5 mins or sth @kelunik
 
github.com/grafana/grafana/issues/5698#issuecomment-256604166 < How does one explain what a usability bug is?
@DaveRandom There's a default value that should be used.
 
@kelunik OK then how can I test this? :-P
 
@DaveRandom Dunno, setup Nginx without any timeout and then with a timeout and see if it makes a difference.
 
@JayIsTooCommon is that timer supposed to be 15 seconds or 2 and a half minutes?
 
ThW
10:26 AM
@DaveRandom the property functions look more readable however :-)
 
@kelunik Can't I just modify artax and log out when keep-alive handles are closed? We are already running a modified artax anyway in order to debug this
 
@Anton_Sh With the information provided: no idea
 
@ThW right, it's a trade-off. That said, you can do it with macros/inline functions
Hang on @ThW I may be able to find a better example
 
ok but how I can debug it? how to detect where the data stops?
@PeeHaa I found something in the log:
[27/Oct/2016:13:31:20 +0300] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)"
 
Wes
 
Anonymous
10:33 AM
@DaveRandom 2 and a half
 
Anonymous
@PeeHaa ??
 
github.com/m6w6/ext-pq @ThW that ext does a lot of interned stuff and is generally pretty nicely written and readable
@JayIsTooCommon k just checking :-P
 
Anonymous
@DaveRandom it is milliseconds, right?
 
yes it's fine, just checking that there weren't too many zeros there
 
@JayIsTooCommon nvm
 
Anonymous
10:38 AM
@PeeHaa you just trying to get my attention? Slut.
 
:)
 
:p
 
am I right to assume content delivery for Vimeo is done using something like x-sendfile because file url's have variables in it? e.g. video/242.mp4?t=1231
and all those other fun websites :p
 
10:58 AM
@DaveRandom That's what I expected. open files ulimit?
… ah you figured
 
@bwoebi a load of sockets in CLOSE_WAIT, probably an artax bug wrt. keep-alive with no time limit, looking into it now :-)
 
@DaveRandom You have a bunch of Artax instances
 
@bwoebi in theory we should only have one client instance, it's shared in auryn
 
@Gordon Not enjoying it too much tbh
 
11:01 AM
i.e. if we have more than one it's a bug in auryn
 
Rainy, German people without a sense of humour (some don't get my English one, I have to be slightly cautious) :P
 
But also a bunch of other stuff wouldn't work in that case because cookies, we don't have a persistent cookie jar, for some reason I couldn't make that work
 
@Jimbo dont worry. I will make you infinitely more miserable on Saturday so you can appreciate what you think is bad today
 
:D
 
@Jimbo humour is not logical
 
11:03 AM
@DaveRandom Well, there are at least 2 SocketPools
 
You are on Vulcan right?
 
@Patrick I did one more step forward
 
@bwoebi ummm... wat
I have no idea why that would be the case
 
@DaveRandom btw. is Jeeves dead? I can't find the process?
 
yes it is right now
 
11:04 AM
:-/
 
Sorry
 
You killed it?
 
I am impatient and you didn't respond for a minute
 
Or did it die itself?
 
@DaveRandom :P
 
11:05 AM
@DaveRandom I could have easily tracked down the resources…
 
@PeeHaa I found that I receive the data, but after I try to unmask it the data is empty. So may be the problem is in my unmask function. I just found the function in google before months and it worked perfect but with small amount of data only
 
Actually @bwoebi now that I know what's actually causing it, you can probably repro it pretty quickly locally if you want, just turn this interval right down and it will probably happen within an hour or two
 
@DaveRandom okay, set it to a second (instead of 150), then I'll look when it halts next
 
ThW
@DaveRandom thanks, bookmarked
 
@bwoebi well I'm doing a little of my own digging atm but next time I will leave it for you
 
11:09 AM
@DaveRandom ok
 
ftr though @bwoebi if I echo new \Exception; in the SocketPool ctor I only get one of them at startup
 
@DaveRandom I just can tell you from the time I was using gdb, I still have it in Terminal backlog
@DaveRandom but it's true, it's not from startup
 
@Gordon I will be in Essen today :p
 
@DaveRandom I suspect it's related to PeeHaa\\AsyncTwitter\\Http\\Artax
 
Oh god :P
 
11:21 AM
@AlmaDo why?
 
To see you of course! (:
 
That would be odd actually. Unless we screwed up the instantiating of it
 
@PeeHaa figured so much. I just see the other instance of Artax is instantiated immediately after a few ReflectionMethod/Parameter objects
 
Wes
mornings - afternoons, actually
 
@bwoebi Well it's not like we never screw something up :P
@Wes hey again
 
Wes
11:26 AM
i'm getting obsessed with some project again so i need to pause it. because i think, think, think and end up doing nothing as usual
besides actual work, need something new to work on
i might finish amphp ui
 
\o/
 
@AlmaDo Hm. I am not in Essen right now. I am in Solingen. I'll head home in an hour or two but then I have to look after the son while the wife is away :(
Analysis paralysis or paralysis by analysis is the state of over-analyzing (or over-thinking) a situation so that a decision or action is never taken, in effect paralyzing the outcome. A decision can be treated as over-complicated, with too many detailed options, so that a choice is never made, rather than try something and change if a major problem arises. A person might be seeking the optimal or "perfect" solution upfront, and fear making any decision which could lead to erroneous results, while on the way to a better solution. The phrase describes a situation in which the opportunity cost of...
 
@Gordon look after -> take him with you to the Kneipe
 
@PeeHaa nah. I am not you enough for that
 
Wes
that, Gordon
 
11:35 AM
which one?
 
where should be the website settings stored? in a php file or in a database?
for website settings I mean like website name, maintenance mode enabled and things like this..
 
What if the maintenance involves the database?
 
@Wes did @Ekin get a Halloween avatar?
 
@PeeHaa hahahahhahah I got it now, thank you
 
11:38 AM
@Gordon that's just a joke :p I'm in my train to Düsseldorf now and we'll have the lengthy 2 minutes stop in Essen ;)
 
@AlmaDo You can drink a soda with @Jimbo \o/
 
Is he there?
 
Yeah
 
Wes
@Gordon she did, she's a whitewalker now
 
@AlmaDo if you stay til Saturday you can go drinking with us
 
11:40 AM
Okay, @Jimbo - up for some Soda today? :)
 
@Wes ah found it. thanks
@AlmaDo there's also a php meetup at trivago this evening
 
@Gordon I don't know yet. I'm free to do anything since I'm on vacation till almost new year
 
@AlmaDo Shut up...seriously
:P
 
Hoho (:
 
:D
 
11:42 AM
@bwoebi well that's really weird, I still have no idea why this would be happening :-/
 
Hoho? Is it xmas yet?
 
@DaveRandom no idea either…
 
Working hard there, @PeeHaa? /troll
 
@Gordon He thinks he's "in the hood"
@AlmaDo ;-)
 
@bwoebi also what's notable is that I really don't get a second instance created at startup
 
11:43 AM
I'm actually doing shit right now, but it involves javascript so I need to take breaks every 10 minutes
 
@DaveRandom … because it only happens when async twitter client gets loaded for first time?
 
I think I might join my vacation with xmas so I go back only in the next year
 
@DaveRandom … actually that's at startup
weird then
 
@PeeHaa you are doing it only now? Shit - I mean
 
@bwoebi I wonder if it may be some issue that's been fixed in the mean time
 
11:45 AM
possibly
 
Although also @bwoebi what's notable about github.com/PeeHaa/AsyncTwitter/blob/master/src/Http/… is that it uses the class, where everything else uses the interface
 
@DaveRandom this is the interface?
 
uh... 1 sec
 
HttpClient is the class?
 
11:47 AM
{}
That thing has been annoying me since I started using artax
 
Right
 
@DaveRandom wut
 
@PeeHaa BATARANGS!!!1
 
btw @PeeHaa there's no reason for you to ask for the class there
I think at some point you needed a class constant but now there aren't any being used
Also this is the reason why that interface should just die
 
@DaveRandom Agreed
 
11:50 AM
regardless @bwoebi, is it possible that you are seeing this because of some oddity surrounding class vs. interface? are there definitely two instances?
 
@DaveRandom I rather suspect my own crappy coding efforts tbh
But yeah either way I can fix it
 
There were two in the output of:
(gdb) define loop
Type commands for definition of "loop".
End with a line saying just "end".
>set $i = 0
>while $i < 1200
 >p (char *) executor_globals.objects_store.object_buckets[++$i]->ce->name->val
 >p executor_globals.objects_store.object_buckets[$i]
 >end
>end
(gdb) loop
 
@bwoebi then I can only assume that was a bug that has been fixed in the interim
 
@DaveRandom I hope so
 
@bwoebi I will leave the echo new ex in for now while debugging
 
11:56 AM
i tried to search for this but still not succeed .

in Redis if i want to set hash, it will be something like this $this->redis->hset($key,$node,$value);

how can i now delete the Key? can any one guide me on this ???
i am creating object like this $this->redis = new Redis();
 

« first day (2203 days earlier)      last day (2742 days later) »