00:03:18  <rphillips>well... trying to reproduce this
00:03:35  <rphillips>i'll write a client to do auth against the endpoint
00:04:19  * UniOnquit (Remote host closed the connection)
00:10:37  <rphillips>rje: https://gist.github.com/rphillips/200e2543b86c0d74b4ad
00:10:41  <rphillips>try this
00:10:54  <rphillips>the only thing displayed is 'end'
00:11:05  <rphillips>make sure to fill out your credentials
00:11:14  <rphillips>using your apikey
00:11:19  <rje>k
00:33:15  * bjornjoined
00:33:30  * bjornquit (Changing host)
00:33:30  * bjornjoined
00:39:27  * joconnorquit (Ping timeout: 245 seconds)
01:01:59  * hdmsquit (Remote host closed the connection)
01:03:11  * hdmsjoined
01:54:48  * DarkGodquit (Ping timeout: 264 seconds)
02:02:12  * hdmsquit (Quit: hdms)
02:40:22  * ^vjoined
03:23:48  * not^vjoined
03:23:58  * ^vquit (Ping timeout: 255 seconds)
04:59:38  * not^vquit (Read error: Connection reset by peer)
06:58:35  * nateratorjoined
07:10:04  * nateratorquit (Quit: naterator)
08:18:46  * DarkGodjoined
10:49:35  * UniOnjoined
10:50:24  * UniOnquit (Remote host closed the connection)
10:50:49  * UniOnjoined
12:01:25  * SouLjoined
12:34:06  * IZEDjoined
12:34:18  <IZED>hello
12:46:38  <IZED>I finally understood how the new luvit works :D
12:49:24  * SouLquit (Ping timeout: 246 seconds)
13:27:17  <rphillips>IZED: sweet
13:27:20  <rphillips>like it?
13:27:32  <rphillips>good morning
13:27:34  <IZED>rsa keys and windows is always... a thing ^^
13:27:43  <IZED>afternoon here, but good morning to you
13:27:49  <rphillips>thanks :)
13:36:13  <IZED>I think I've found a bug in lit auth under windows though
13:41:12  <IZED>libs/storage.lua:76 It tries to create a file with ":" in it, but this is not possible in windows, so it returns ENOENT
13:46:21  <rphillips>IZED: opening a ticket under lit would be great
13:46:31  <IZED>sure
13:46:33  <rphillips>steps to reproduce would be handy as well
13:46:53  <IZED>oh that's easy.. try to lit auth on windows :D
13:46:58  <rphillips>heh
14:24:49  * UniOnquit (Remote host closed the connection)
15:12:33  * UniOnjoined
15:20:45  <rphillips>man, nice... we are getting issues and PRs
15:26:26  <rphillips>IZED: you rock
15:26:34  <IZED>ikr :D
15:26:57  <IZED>though, all old keys would be obsolete and everyone has to reauth
15:27:10  <rphillips>seems reasonable... there are only a few of us so far
15:27:36  <IZED>and it looks like I'm the only one using it on windows?
15:28:31  <rphillips>IZED: minor comment
15:29:05  <rphillips>oh, it's different
15:29:47  <IZED>^^
15:29:54  <rphillips>IZED: have you used the windows services support yet?
15:30:19  <rphillips>IZED: and... what are you using lit/luvi for, if you don't mind?
15:30:29  <IZED>rphillips: no, didn't even know there is one
15:30:29  <rphillips>trying to gather use cases
15:31:04  <rphillips>so any luvi/luvit app can be a windows service as well
15:31:06  <rphillips>https://github.com/luvit/luvi/blob/master/samples/winsvc.app/main.lua
15:31:08  <IZED>I like making web apps with luvit, but the old version had some stability problems
15:31:47  <rphillips>tim is currently writing a blog webapp: https://github.com/luvit/blog.luvit.io
15:31:55  <IZED>http://b42.in
15:31:57  <IZED>already done
15:32:02  <IZED>old luvit version
15:32:08  <IZED>and using websocket :D
15:32:12  <rphillips>nice! :)
15:32:28  <rphillips>https://github.com/creationix/rye
15:32:38  <IZED>when the page reloads, the luvit server crashed in the background...
15:33:00  <rphillips>luvit1, or luvit2?
15:33:06  <IZED>luvit1
15:33:13  <IZED>that's why I'm switching now
15:33:42  <IZED>actually I wanna recode large parts of it for the new luvit to also improve performance
15:33:45  <rphillips>man, sorry about that crash... hopefully it's fixed or improved
15:35:23  <IZED>btw, the way I understood it is that lit works like npm, but also implements a make tool, is there a website like npmjs for it?
15:37:02  <rphillips>http://lit.luvit.io/
15:37:16  <rphillips>i use a chrome browser plugin to naviagate the json
15:37:34  <rphillips>a real website is on the TODO
15:37:39  <IZED>ouu
15:38:21  <IZED>I see now, what's the name of this plugin?
15:38:47  <rphillips>https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc
15:38:58  <IZED>thanks
15:40:49  <rphillips>IZED: so a `lit make` will package all the dependencies, and a main.lua
15:40:54  <rphillips>into an executable
15:40:58  <IZED>rphillips: btw, is there now a built in way in luvit to use websockets? this project is so big that I lose the overview way too quickly...
15:41:54  <rphillips>not yet, but tim wrote the websocket codec for lit
15:41:57  <rphillips>creationix/websocket-codec
15:42:08  <rphillips>https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua
15:42:43  <IZED>this code looks better than my websocket plugin for luvit1
15:42:44  <IZED>:D
15:43:11  <rphillips>i'm sure he will appreciate that :)
15:47:58  * hdmsjoined
15:54:00  * nateratorjoined
15:59:15  * nateratorquit (Quit: naterator)
16:02:09  <creationix>:)
16:21:29  * joconnorjoined
16:38:12  <rphillips>this http post issue is a doozy
16:51:01  <rje>very frustrating
16:54:32  <creationix>still fighting it?
16:55:43  <rje>when i don't remove the httpRequests reference to the socket, i'm debugging a stream issue
16:56:05  <rje>[string "/Users/rje/raxvc/luvit/deps/stream/stream_wri..."]:349: attempt to call local 'cb' (a nil value)
16:56:59  <rje>if i get that fixed, then maybe we don't release socket from the httpRequest and let it gc with the request
17:00:04  <creationix>rphillips: let me know if you need help. I’m focussed on getting the blog done, but I can stop if you’re stuck and think I can help.
17:04:28  <rphillips>was that a question for rje?
17:08:05  * travis-cijoined
17:08:06  <travis-ci>luvit/luv#255 (master - 45ecb71 : Tim Caswell): The build passed.
17:08:06  <travis-ci>Change view : https://github.com/luvit/luv/compare/2ec74f30a417...45ecb712322e
17:08:06  <travis-ci>Build details : http://travis-ci.org/luvit/luv/builds/54272895
17:08:06  * travis-cipart
17:11:38  <creationix>rphillips: either of you
17:12:17  <rphillips>yeah, I would like some help on it...
17:15:31  <rje>rphillips, are you seeing the same stream issue i am?
17:16:09  <rphillips>are you using the identity client gist?
17:16:23  <rphillips>i saw that stream issue with the 1mb test case
17:16:53  <rje>right, i'm seeing it with the test, not the identity client
17:17:24  <rphillips>right
17:17:36  <rphillips>i've been focusing on the identity client
17:19:07  <creationix>rphillips: can I have code that duplicates the issue?
17:20:24  <rphillips>creationix: https://gist.github.com/rphillips/200e2543b86c0d74b4ad
17:20:33  <rphillips>make sure to fill out your rackspace username and APIkey
17:20:41  <creationix>right
17:22:30  <creationix>not very verbose
17:24:31  <rje>https://gist.github.com/rjemanuele/8e7776d9487d08a63a31
17:24:57  <rje>data emitted by the socket is truncated
17:25:13  <rphillips>the socket is closed
17:25:15  <creationix>I don’t get anything, maybe my auth tokens are bad
17:25:38  <creationix>but if I post to https://httpbin/post, I get my data back
17:25:51  <creationix>(just make sure to not use real auth data just in case they record stuff
17:26:03  <rphillips>needs to be a large set of data... may 50kb
17:26:03  <rje>rphillips: what's closing it? in my code i never deref the socket
17:26:05  <rphillips>maybe*
17:26:18  <rphillips>the _done() call to the stream
17:27:22  <creationix>how big are the chunks?
17:27:29  <creationix>(typically)
17:27:59  <rphillips>creationix: https://gist.github.com/rphillips/80f3f4189f4b68f9a74b
17:27:59  <rje>rphillips: in my _done call, i've stopped setting the socket to nil. nothing else should close it
17:28:52  <rphillips>rje: https://github.com/luvit/luvit/blob/master/deps/http.lua#L354
17:29:00  <rphillips>i think it's this _end() to the stream
17:30:48  <rje>rphillips, that's just an _end to the Writable stream. it shouldn't know anything about the socket
17:41:23  <rphillips>hmm. strange... now the ssl cert error is back
17:51:37  <rphillips>rje: creationix: vidyo?
17:51:58  <rje>sure
17:52:08  * rjefinds headphones
17:52:10  <creationix>almost standup
18:05:57  <rphillips>ok. back to see the partial data
18:13:56  * nateratorjoined
18:16:17  <rphillips>creationix: i think you are on to something
18:16:32  <rphillips>deps/tls/common.lua _read() may be keep some of the chunks
18:16:36  <rphillips>keeping*
18:17:34  <rphillips>err is nil, and data is nil on the onData event
18:17:41  <rphillips>within the tls module
18:21:45  <creationix>interesting
18:21:57  <creationix>I’m trying to get coro-http to make the connection. It’s got it’s own bugs
18:22:05  <rphillips>interesting
18:22:05  <creationix>(I’ve never tried post with it)
18:22:31  <creationix>I use it heavily to make https GET requests to github though, so the ssl *should* work
18:24:16  <creationix>hmm, coro-http gets stuck in handshake
18:25:25  <creationix>getting nil, nil back from read
18:25:56  <creationix>I’m setting verify_mode({“none”}) so certs shouldn’t matter right?
18:27:55  <rphillips>correct
18:28:52  <creationix>so nil from the tcp socket in coro-tcp means connection closed
18:31:08  <rphillips>gist?
18:31:54  <creationix>https://gist.github.com/creationix/ed7a3f15a6df8a5bae3c
18:32:04  <creationix>I decoded the chunks in wireshark, it looks normal
18:32:31  * nateratorquit (Quit: naterator)
18:33:05  <creationix>but right after sending me the cert chain, the server sends a TCP FIN, ACK!
18:34:21  <rphillips>tls1 ssl client?
18:35:10  <creationix>http://pasteboard.co/1MpO6fAc.png
18:36:01  * nateratorjoined
18:36:19  <rphillips>creationix: https://github.com/luvit/lit/blob/master/deps/coro-tls.lua#L13
18:36:25  <rphillips>try changing that to TLSv1
18:37:26  <creationix>yep, then handshake finishes
18:40:14  <creationix>rphillips: I think this works https://gist.github.com/creationix/c67879797bffa9b81f33
18:40:27  <creationix>the process hangs, but that may be just because of how http-coro does keepalive
18:40:51  <creationix>just make sure to `lit install creationix/coro-http` and then tweak the coro-tls to ve tls_v1
18:44:59  <creationix>ok, updated gist to pretty-print decoded json
18:47:13  <rje>rphillips: can i grab you for a quick meeting with nachi?
18:47:23  <rphillips>sure
18:47:36  <rje>my room
18:47:52  <rphillips>creationix: i'm thinking the output ssl bio isn't flushed
18:52:19  <creationix>I’m comparing tls/common.lua with coro-tls.lua trying to find differences
18:52:35  <creationix>your read loop is slightly different semantics (as is your write loop)
18:52:44  <creationix>mine is more agressive about flushing I think
18:53:26  * nateratorquit (Quit: naterator)
18:54:26  <rphillips>though, it's strange... the ssl is working fine for days on my VPS
18:54:43  <creationix>against identity?
18:54:57  <creationix>I wonder if a luvi update changed something
19:00:04  <rphillips>creationix: the new agent2 app has been running against our monitoring endpoints
19:00:14  <rphillips>i have had it running for days
19:00:18  <creationix>right
19:00:33  <rphillips>there is a lot of json being passed around
19:01:12  <creationix>rphillips: I found one way to fix it
19:01:14  <rphillips>i'll update it to the latest from toda
19:01:17  <rphillips>today
19:01:21  <rphillips>oh?
19:01:33  <creationix>check self.ssl:read() whenever _read is called
19:01:39  <creationix>not just after writing in the ondata event
19:03:26  <rphillips>gotcha...
19:04:16  <creationix>see about this https://github.com/luvit/luvit/pull/671
19:05:08  <creationix>I’m probably calling :read more than I need to, but that’s not harmful at least
19:06:12  <rphillips>do you get all the data?
19:06:20  <rphillips>i ran that branch and still see the partial
19:07:54  <creationix>hmm, I broke something when I refactored it
19:09:12  <creationix>rphillips: try again, I force pushed
19:09:41  <creationix>part of the problem is self.inp:pending is a bad check in this case
19:09:49  <creationix>it’s sometimes 0 when there is data to read
19:09:52  * travis-cijoined
19:09:53  <travis-ci>luvit/luvit#1845 (tls-read-fix - 325cf71 : Tim Caswell): The build has errored.
19:09:53  <travis-ci>Change view : https://github.com/luvit/luvit/commit/325cf718f87c
19:09:53  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54289650
19:09:53  * travis-cipart
19:10:20  <rphillips>oh realy
19:10:23  <rphillips>really
19:10:35  * travis-cijoined
19:10:36  <travis-ci>luvit/luvit#1847 (tls-read-fix - 5dc203d : Tim Caswell): The build has errored.
19:10:36  <travis-ci>Change view : https://github.com/luvit/luvit/compare/325cf718f87c...5dc203dff731
19:10:36  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54289852
19:10:36  * travis-cipart
19:10:41  <creationix>that was the first thing I tried, but it didn’t fix anything so I thought it wasn’t the problem
19:10:49  <creationix>so I added it back when refactoring and it broke
19:12:07  <creationix>hmm, actually, that may be all the problem
19:13:20  <creationix>ok, made a smaller change and it still seems to be fixed https://github.com/luvit/luvit/pull/671/files
19:13:23  <creationix>and I trust this one more
19:13:42  * travis-cijoined
19:13:43  <travis-ci>luvit/luvit#1849 (tls-read-fix - 2cf4ba5 : Tim Caswell): The build has errored.
19:13:43  <travis-ci>Change view : https://github.com/luvit/luvit/compare/5dc203dff731...2cf4ba5a4e6e
19:13:43  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54290141
19:13:43  * travis-cipart
19:14:09  <rphillips>oh man, that is it
19:14:47  <creationix>I noticed it because my code never checked that before reading
19:15:46  <creationix>I also changed _write to be a while like coro-tls, but that didn’t seem to make any difference
19:16:16  <creationix>I can revert that part and clean up the commit message if you want
19:17:05  <rje>woohoo
19:17:31  <creationix>btw, the “encoding” variable that’s used in _write is meaningless
19:17:45  <creationix>the passed in encoding is for the plaintext, but the socket._write call is ciphertext
19:18:37  <creationix>(in TLSSocket:_write)
19:19:25  <rphillips>i like the PR
19:19:37  <creationix>ok, I force pushed one more time just to tidy the message
19:19:43  <creationix>still works and passes the unit tests locally
19:21:09  <creationix>final patch https://github.com/luvit/luvit/commit/8f14ccf544b47ba4e108c41c95c9080bd064950a
19:21:31  <rphillips>woo
19:21:41  <creationix>so I wonder what inp:pending is for then
19:21:46  <rphillips>i wonder why we haven't seen this before
19:22:32  <creationix>ok, merged
19:22:49  <creationix>my only idea is a luvi change did something to lua-openssl
19:23:07  <creationix>or identity upgraded changed their server
19:24:05  * travis-cijoined
19:24:06  <travis-ci>luvit/luvit#1853 (tls-read-fix - b01c1af : Tim Caswell): The build has errored.
19:24:06  <travis-ci>Change view : https://github.com/luvit/luvit/compare/74d01978de20...b01c1af081a0
19:24:06  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54291483
19:24:06  * travis-cipart
19:25:01  <rphillips>the identity test client works now
19:25:14  <rphillips>thanks tim
19:25:19  <creationix>you’re very welcome
19:25:19  * travis-cijoined
19:25:20  <travis-ci>luvit/luvit#1855 (tls-read-fix - 8f14ccf : Tim Caswell): The build passed.
19:25:21  <travis-ci>Change view : https://github.com/luvit/luvit/compare/b01c1af081a0...8f14ccf544b4
19:25:21  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54291667
19:25:21  * travis-cipart
19:25:35  <creationix>I guess there was value in writing my own independent http/tls stack for lit after all :)
19:25:40  <rphillips>the pending function calls are in the lua-openssl examples
19:25:48  <rphillips>strange
19:26:24  <creationix>I vaguely remember hitting this same issue with coro-tls and removing the pending checks
19:26:28  <creationix>it’s all coming back now
19:26:56  * travis-cijoined
19:26:57  <travis-ci>luvit/luvit#1857 (master - f18355d : Tim Caswell): The build passed.
19:26:57  <travis-ci>Change view : https://github.com/luvit/luvit/compare/8e5c6dfa069a...f18355d2b6b5
19:26:57  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54291844
19:26:57  * travis-cipart
19:27:02  <creationix>I should probably add cert checking to coro-tls since I use github to auth users
19:27:20  <creationix>some very savvy user could mitm me by faking github and responding with fake public keys
19:28:24  <creationix>the lit protocol doesn’t need ssl since I check everything at the app level using signatures and hashes, but the github rest call needs a secure socket
19:53:07  <creationix>ok, published lit 1.0.1 to github and lit
19:53:17  <creationix>windows auth fixes and defaults to wss for upstream
19:55:48  * nateratorjoined
20:09:08  * nateratorquit (Quit: naterator)
20:14:51  * nateratorjoined
20:40:27  <rphillips>nice
20:40:41  <rphillips>i'm back working on the keystone client
20:40:51  <rphillips>shouldn't be long until i have the setup feature working again
20:42:44  * nateratorquit (Quit: naterator)
20:43:05  * nateratorjoined
20:43:29  * nateratorquit (Client Quit)
21:15:00  * nateratorjoined
21:16:19  <creationix>This is my attempt at a cleaner, updated luvit logo https://github.com/luvit/logo/blob/master/luvit-logo.svg
21:16:39  <rphillips>luuuv it!
21:16:52  <rje>very nice
21:18:16  <rch>any changes to the text logo?
21:20:40  <creationix>a little
21:20:54  <creationix>now to work with ken to making a matching theme for the website/blog
21:25:14  <rphillips>nice
21:28:53  <creationix>rch: oh, the .txt logo, no, no changes there. Though I guess I should prepend “Luvit “
21:29:12  * creationixread “text color"
21:29:37  <rch>heh
21:29:41  <rch>i was wondering
21:56:33  <rphillips>we should do a point release of luvit
21:56:36  <rphillips>with the ssl patch
21:56:46  <creationix>rphillips: sounds good
21:56:46  <rphillips>keystone client works now
21:56:55  <creationix>I did a point release of lit today for similar reasons
21:57:01  <creationix>2.0.1
22:01:35  <rphillips>i should have wrote down the release process
22:03:48  <creationix>rphillips: https://github.com/luvit/luvit/commit/1735f0214df853d6f62a5f8ffaa2c8110668cb83
22:04:19  <rphillips>what is the command to find out the changed modules?
22:04:30  <creationix>lit install will do it
22:04:38  <rphillips>ah k
22:04:47  <creationix>well, lit add to find out what needs bumping in exports.version
22:04:57  <creationix>lit install to find out what needs bumping in luvit’s pacakge.lua
22:05:13  <creationix>there is also this https://github.com/luvit/luvit/wiki/Making-a-luvit-release
22:05:36  <rphillips>well. that is perfect :) thanks
22:05:46  <rphillips>thought I saw something like that
22:07:01  <creationix>I didn’t quite follow it exactly, but I did bump all changed versions and update everything in package.lua
22:07:47  * travis-cijoined
22:07:48  <travis-ci>luvit/luvit#1858 (master - 934394b : Tim Caswell): The build has errored.
22:07:48  <travis-ci>Change view : https://github.com/luvit/luvit/compare/f18355d2b6b5...934394bafeeb
22:07:48  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/54311709
22:07:48  * travis-cipart
22:08:29  <creationix>probably should made a pr for that instead of pushing to master
22:08:35  <creationix>rphillips: do you want to sign the tag this time?
22:08:47  <creationix>I usually just include the changelog data in the annotation
22:11:47  <rphillips>sure
22:12:18  <creationix>git cat-file -p 2.0.0 to see the last tag
22:12:37  <creationix>git tag -a -s 2.0.1 to create the tag
22:16:10  <rphillips>done
22:17:20  <rphillips>going to publish
22:18:15  <rphillips>done
22:23:02  <rphillips>published the luvit-request, rackspace-monitoring-client, and the keystone client
22:23:04  <rphillips>woo
22:26:56  <rphillips>https://www.evernote.com/shard/s9/sh/33db40d3-5a3d-45b4-a7c9-3c1848ed81ef/567949a8b23f497a9facadbd0008d99e
22:55:37  * IZEDquit (Ping timeout: 265 seconds)
23:10:47  <creationix>staging site for new blog engine at http://luvit.io:9090/
23:11:58  <creationix>(this is my theme by the way, but based somewhat on pointers from ken I got yesterday)
23:12:25  <creationix>rphillips: yay, it works (your screenshot)
23:12:48  <creationix>weekend time, see you all later. I’m still pretty sick so I don’t know how much I’ll work this weekend
23:13:15  <creationix>nice thing about working from home is I don’t have to stay home when I’m sick
23:46:47  * nateratorquit (Quit: naterator)