Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 24 January 2018.
02:56 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
11:37 Lukas_ joined, Lukas_ left 11:38 Lukas__ joined
Lukas__ Hi, I try to filter console output with a pipe and grep, but do not get the output. Just cro run output is ok 11:41
jnthn Output buffering, perhaps? 11:45
Try $*OUT.out-buffer = False; or some such 11:46
Lukas__ Yes, very likeky, but disable out-buffer on $*out works only for first request. 11:47
jnthn Hm, that sounds like it didn't really change anything 11:50
Lukas__ I have it before $http.start; 11:51
jnthn If you're using github.com/croservices/cro-http/bl...g/File.pm6 then errors go to $*ERR so one might need to do similar to that
Lukas__ I use only logs=> $*OUT, as far as i See, ERR then should go the STDOUT as well 11:56
jnthn Yeah, if you pass logs explicitly it will indeed 11:57
Lukas__ Tried with out-buffer disabled for ERR as well, the same
I can write to file an filter there 11:58
jnthn Curious that the thing I suggested didn't help
In that
perl6 -e 'for ^100 { say ++$ %% 2 ?? "a" !! "b"; sleep 0.5 }' | grep a
Does indeed show buffering
perl6 -e '$*OUT.out-buffer = False; for ^100 { say ++$ %% 2 ?? "a" !! "b"; sleep 0.5 }' | grep a 11:59
On the other hand, does not
(outputs an a every second)
Lukas__ Just wondering if only on my Box.
jnthn I can't imagine anything that'd be going on with Cro to make the output buffering work differently than in the example above
Lukas__ First example: no output, second example: a every second. 12:02
Will have a look on my code again. Thanks so far.
jnthn Lunch time, but will see if I can repro it here afterwards 12:04
Lukas__ Enjoy 12:05
12:36 Lukas_ joined
Lukas_ Seems cro run and perl6 service.p6 makes a difference 12:37
12:55 Lukas_ joined 12:56 Lukas__ joined
Lukas__ Out-buffer false in cro script did help. 12:57
Geth cro-http/push-promise: 14f99a7e0e | (Jonathan Worthington)++ | lib/Cro/HTTP/Server.pm6
Configure TLS as needed for HTTP/2.0

Note that this needs HEAD of IO::Socket::Async::SSL, which is not yet released; it should be before this branch is merged, however.
17:35
japhb Oooh, can't wait to try that out. Does this fix it sufficiently for a stock `cro stub` of an https server can be accessed from Chrome or Firefox? 20:08
Geth cro-http/push-promise: 4b21218725 | Altai-man++ | lib/Cro/HTTP2/GeneralParser.pm6
Don't die if Settings frame is empty
23:29
cro-http/push-promise: dd769b8535 | Altai-man++ | lib/Cro/HTTP2/FrameParser.pm6
Fix priority flag checking literal