<crystal-gh>
[crystal] jhass opened pull request #2681: Make HTTP::Server less stupid about unexpected errors (master...http_server_verbosity) https://git.io/vrHgZ
<BlaXpirit>
is there currently any way to do string replacement with regex and a block that receives MatchData? I only see with a block that receives String, which is not so nice
<crystal-gh>
[crystal] jhass pushed 2 new commits to master: https://git.io/vrH2e
<crystal-gh>
crystal/master 3228b14 TSUYUSATO Kitsune: Fix to redirect corrected URL
<crystal-gh>
crystal/master 8f0f8a1 Jonne Haß: Merge pull request #2544 from MakeNowJust/fix/redirect-corrected-url...
<crystal-gh>
[crystal] jhass pushed 1 new commit to master: https://git.io/vrH2I
<crystal-gh>
crystal/master eb8428e Jonne Haß: Add HTTP::StaticFileHandler specs for missing directory and requesting a...
<jhass>
BlaXpirit: the MatchData should be available as $~ inside the block
<BlaXpirit>
but no, there are too many branches to introduce this
|meta has joined #crystal-lang
<sdogruyol>
is there any way to keep connections open in HTTP::Handler
<jhass>
don't close them?
<|meta>
ask them nicely to work overtime
<|meta>
explain that it is time*1/2, they probably will do it
<sdogruyol>
time*1/2 for what?
<|meta>
I was joking, ignore me
<sdogruyol>
oh, that’s rare of you :D
<sdogruyol>
haha
<sdogruyol>
i can loop forever for each client but that’s weird
<sdogruyol>
(at least that’s what i think
<jhass>
I'm not sure what you want/expect
<sdogruyol>
i want to stream http response
<jhass>
just write it to response, it should stream by default these days
<sdogruyol>
:D
<jhass>
even do request pipelining I htink
<sdogruyol>
this is basically streaming then context.response.puts “Bla”; context.response.flush;
<sdogruyol>
:P
<jhass>
yes
<crystal-gh>
[crystal] asterite pushed 4 new commits to master: https://git.io/vrH68
<crystal-gh>
crystal/master 8829a36 Ary Borenszweig: Fixed #2678: Double splat variable doesn't exist when it captures nothing but other named arguments are supplied
<crystal-gh>
crystal/master a8fb306 Ary Borenszweig: Compiler: add spec that verifies that a double splat can be passed to a lib fun
<crystal-gh>
crystal/master 9bdae1f Ary Borenszweig: Fixed #2677: Splatting evaluates the expression multiple times
<sdogruyol>
i like how Crystal’s HTTP is built for HTTP/2
<sdogruyol>
feeling sorry for Rack :/
<jhass>
rack 2 is going to have a similar API I think
<sdogruyol>
yeah, it has to
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci>
crystal-lang/crystal#5ff5abf (master - Fixed #2672: Merging a proc returning void with a proc returning non-void should be a proc returning void): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/133721910
<crystal-gh>
[crystal] asterite closed pull request #2446: Promote results of +-*|&^ operations to 64-bit if any operand is 64-bit (master...20160413-fix567) https://git.io/vVhMp
mhib has joined #crystal-lang
TheLemonMan has quit [Remote host closed the connection]
TheLemonMan has joined #crystal-lang
<crystal-gh>
[crystal] lbguilherme opened pull request #2684: Fixes Float#to_s for scientific notation (master...patch-3) https://git.io/vrHy6
dhk has quit [Ping timeout: 240 seconds]
<jhass>
this without_openssl hack is annoying as hell
sdogruyol has quit [Quit: Connection closed for inactivity]
<crystal-gh>
[crystal] asterite opened pull request #2687: Changes to Void (master...feature/void) https://git.io/vrHHS
<crystal-gh>
[crystal] MakeNowJust opened pull request #2688: Fix to get VERSION if repository have no tag (master...fix/describe-always) https://git.io/vrHH9
<leafybasil>
Ah interesting, I got a handshake fail
<leafybasil>
Which was definitely a step up
<jhass>
so same as asterite :(
<jhass>
could you get me a wireshark capture of that?
<jhass>
and ideally a run with curl too in it, for comparison
<leafybasil>
jhass: I can indeed, although haven't used it in years, so getting a capture of just taht may take min a minute
<leafybasil>
me a minute*
<jhass>
check what it resolves to for you (dig) and filter with ip.addr == xxxxx
<leafybasil>
I tried 'port 443' and wireshark gave me nothing at all
<leafybasil>
Will do as yo usuggest
<leafybasil>
Noticeably shorter, whats best way to provide these?
<jhass>
you should be able to export them as pcap somehow, let me see
<leafybasil>
Yeah I have
<leafybasil>
I meant to get them to you? Email?
<jhass>
ah, yeah works for me
<jhass>
me@jhass.eu
<leafybasil>
thanks, will attach now
<leafybasil>
curl and crystal are using a diff TLS version by the looks of it
<leafybasil>
Sent
<leafybasil>
jhass: just realised I get a different message depending on whether I provide a URL starting with "HTTPS" or specify "ssl: true", I'm guessing that's not right either?
<leafybasil>
Will raise as bug if not
<jhass>
how different?
<jhass>
code for either variant?
<leafybasil>
Hold up, somethings fishy
<leafybasil>
with "ssl: true", I get the message I told you above, every time
<leafybasil>
with a URL starting with HTTPS, I got "getaddrinfo: Non-recoverable failure in name resolution (Socket::Error)"
<leafybasil>
and am now getting "getaddrinfo: nodename nor servname provided, or not known (Socket::Error)"
<jhass>
leafybasil: yeah, it's just incompatible ciphersuites for some reason
<leafybasil>
Ah
<|meta>
jhass what should I do with this
<leafybasil>
So version is fine but they can't agree a suite to use?
<jhass>
|meta: it shows that it's a bad example for union types, there are none there
<|meta>
someone who actually knows crystal should write the code samples
<|meta>
I dont know shit
<|meta>
also, virtual types are cooler than union types
<jhass>
|meta: also puts("#{foo}") is bad style, (in both ruby and crystal), puts already calls to_s on its argument. taking puts out of the picture foo.to_s is preferred over a literal "#{foo}"
<|meta>
I didnt write any of that
<|meta>
dont blame me
<|meta>
70.50.41.126 wrote most of the code samples
<|meta>
blame whomever that is
<leafybasil>
Oh yeah I met him once
<leafybasil>
Cheeky bugger
<jhass>
leafybasil: if you crystal build your_reproducer.cr and run OS X's ldd equivalent (otool -L or something?) on it, what's the result?
<leafybasil>
jhass: friends just turned up, I will be able to check and get back to you
<leafybasil>
but it will be at least an hour before I can