00:03:05  * kevwilquit (Quit: WeeChat 0.3.9.2)
00:34:51  * indexzeroquit (Quit: indexzero)
01:39:08  * travis-cijoined
01:39:08  <travis-ci>[travis-ci] luvit/luvit#533 (tls-puller-fix - 4a43977 : Brandon Philips): The build passed.
01:39:08  <travis-ci>[travis-ci] Change view : https://github.com/luvit/luvit/commit/4a43977c74b0
01:39:08  <travis-ci>[travis-ci] Build details : http://travis-ci.org/luvit/luvit/builds/3524584
01:39:08  * travis-cipart
03:09:46  * joshthecoderquit (Quit: Leaving...)
03:15:53  * mmaleckichanged nick to mmalecki[zzz]
04:31:51  * Golesjoined
04:37:11  * joshthecoderjoined
05:03:13  * Golesquit (Remote host closed the connection)
05:09:30  * tim_smartchanged nick to tim_smart|away
06:24:40  * kazuponjoined
06:26:23  * kristatejoined
06:50:53  * joshthecoderquit (Ping timeout: 252 seconds)
07:50:56  * tim_smart|awaychanged nick to tim_smart
08:03:49  * DarkGodjoined
08:19:34  * erlbot--quit (*.net *.split)
08:19:56  * erlbot--joined
08:20:42  * kristatequit (Ping timeout: 265 seconds)
08:40:55  * kazuponquit (Remote host closed the connection)
08:53:23  * tim_smartchanged nick to tim_smart|away
08:58:53  * kristatejoined
09:00:39  * kristate_joined
09:03:33  * kristatequit (Ping timeout: 256 seconds)
09:32:24  * luastonedjoined
09:46:03  * devurandomquit (Ping timeout: 260 seconds)
11:04:37  * mmalecki[zzz]changed nick to mmalecki
11:20:24  * Golesjoined
11:24:31  * spionjoined
11:54:23  * spionquit (Ping timeout: 246 seconds)
12:02:56  * Golesquit (Remote host closed the connection)
12:06:49  * spionjoined
12:38:08  * Golesjoined
13:26:34  * Golesquit (Ping timeout: 246 seconds)
13:35:52  * Golesjoined
14:00:58  * mmaleckichanged nick to mmalecki[out]
14:13:58  * indexzerojoined
14:15:25  * devurandomjoined
14:52:34  * Goles_joined
14:55:54  * Golesquit (Ping timeout: 240 seconds)
15:17:22  * Goles_quit (Remote host closed the connection)
15:17:43  * mmalecki[out]changed nick to mmalecki
15:31:58  * indexzeroquit (Quit: indexzero)
16:27:11  <devurandom>creationix: Hi! How do I do authentication with Luv?
16:44:23  <creationix>devurandom, implement it manually
16:44:27  <creationix>there aren't any libraries yet
16:44:33  <creationix>http basic auth is pretty simple
16:44:40  <creationix>and quite secure when done over https
16:44:47  <creationix>(and not secure at all when over plain http)
16:48:55  <devurandom>I'd need basic-auth anyway, because I would go via PAM (or LDAP if PAM is not possible).
16:49:23  <devurandom>Do you have a suggestion were to hook in my auth code?
16:49:54  <devurandom>I.e. what part of Moonslice/Luv/LHTTP/... should I look at?
16:50:31  <creationix>the easiest route would be to write a new web middleware
16:50:45  <creationix>return function (app, authOptions) return function (req, res) ... end end
16:50:57  <devurandom>What I would like to do is something like <Location /foo> Require @somegroup </...>
16:51:18  <creationix>are you using moonslice.lua in the moonslice-luv folder?
16:51:35  <devurandom>Currently I am not using anything at all, yet.
16:51:50  <creationix>so with raw web middlewares, there is no concept of url routing, just layers
16:52:03  <creationix>and you inspect the req.url in your layer to know if you should interfere or not
16:53:16  <devurandom>I guess I first need to know the basics... :( What is a web-middleware? What is that return function(app,authopts) ... you wrote and where would I put it?
16:53:48  <creationix>look in req for the right www-authenticate header. If it's not there, call respond directly with , if it's not authenticated, call res with a 401 response
16:53:56  <creationix>if it is authenticated, call through to app(req, res)
16:53:59  <devurandom>My background in webprogramming is roughly PHP3 -- so you get an idea how outdated my experiences might be. ;)
16:54:12  <creationix>yeah, this will be different, it's low-level http stuff
16:54:15  <creationix>but not hard
16:54:27  <creationix>I can write a quick basic auth plugin later, but I need to run some errands now
16:54:56  <creationix>but the primitives you have are, the request, the inner layer, and the respond function
16:55:24  <devurandom>Ok, thanks for those hints. I'll continue porting to Lua 5.2 and then hopefully get some poking done to figure out how the auth shall work.
16:55:40  <devurandom>the-inner-layer = app()?
16:56:18  <creationix>yeah, the way "web" works is by wrapping app functions in layers
16:56:19  <creationix>https://github.com/creationix/luv-chat/blob/master/server.lua#L11-L12
16:56:52  <creationix>so using your auth middleware would be something like "app = require('basic-auth')(app, authOptions)"
16:56:55  * indexzerojoined
16:57:02  <creationix>and the middleware itself would be structured like I showed before
16:58:52  <devurandom>Nice, thanks :)
16:59:13  <devurandom>Different topic: Do you have unit tests for lhttp_parser?
16:59:50  <devurandom>Since I finished that and it compiles, but since I never used uservalues before, I am not sure whether it actually works.
17:10:12  <devurandom>unit tests for luv: When test-tcp and test-timer report "done", everything works?
17:18:00  * rje`macjoined
17:25:48  * indexzeroquit (Quit: indexzero)
17:27:23  * philips_quit (Excess Flood)
17:31:42  * philips_joined
17:52:20  <devurandom>creationix?
17:52:58  <devurandom>moonslice-luv tests (web and autoheaders) work now, too. Is that enough to ensure proper operation?
17:54:12  <devurandom>Trying the examples (samples/) now: lua: ./websocket.lua:1: module 'ffi' not found:
17:57:25  <devurandom>Hm, when compiled for lua 5.2, luv.so does not load anymore in luajit, because the latter does not export luaL_setfuncs.
17:57:43  <devurandom>I guess that can easily be fixed by building luv against luajit instead.
18:00:40  <devurandom>creationix: Apart from that it seems to work. Will commit and create the pullrequest.
18:19:09  * travis-cijoined
18:19:09  <travis-ci>[travis-ci] luvit/luvit#534 (check-ssl-in-puller - e76c7f2 : Brandon Philips): The build passed.
18:19:09  <travis-ci>[travis-ci] Change view : https://github.com/luvit/luvit/commit/e76c7f28ca7a
18:19:09  <travis-ci>[travis-ci] Build details : http://travis-ci.org/luvit/luvit/builds/3535934
18:19:09  * travis-cipart
18:21:19  <devurandom>creationix: pullrequests created
18:24:09  * tim_smart|awaychanged nick to tim_smart
18:25:36  * travis-cijoined
18:25:36  <travis-ci>[travis-ci] luvit/luvit#536 (master - f26fac3 : Brandon Philips): The build was fixed.
18:25:36  <travis-ci>[travis-ci] Change view : https://github.com/luvit/luvit/compare/6e862819a40a...f26fac34f1b8
18:25:36  <travis-ci>[travis-ci] Build details : http://travis-ci.org/luvit/luvit/builds/3536001
18:25:36  * travis-cipart
18:29:32  * spionquit (Ping timeout: 246 seconds)
18:40:46  * tim_smartchanged nick to tim_smart|away
18:44:00  * joshthecoderjoined
18:46:37  * spionjoined
18:52:17  * spionquit (Ping timeout: 246 seconds)
19:03:05  <creationix>devurandom, thanks, I'll look at it later, in meetings now
19:05:57  * spionjoined
19:21:50  * Goles_joined
19:22:12  * Goles_quit (Remote host closed the connection)
19:41:06  * tim_smart|awaychanged nick to tim_smart
19:46:34  * tim_smartchanged nick to tim_smart|away
19:48:46  * tim_smart|awaychanged nick to tim_smart
19:53:19  * kristate_quit (Ping timeout: 265 seconds)
20:01:45  * kristatejoined
20:02:54  * indexzerojoined
21:00:25  * travis-cijoined
21:00:25  <travis-ci>[travis-ci] luvit/luvit#538 (master - 0c4d880 : Brandon Philips): The build passed.
21:00:25  <travis-ci>[travis-ci] Change view : https://github.com/luvit/luvit/compare/f26fac34f1b8...0c4d88057cde
21:00:25  <travis-ci>[travis-ci] Build details : http://travis-ci.org/luvit/luvit/builds/3538319
21:00:25  * travis-cipart
22:21:10  * indexzeroquit (Quit: indexzero)
22:33:55  * kristatequit (Ping timeout: 240 seconds)
22:54:47  * ajacksifiedjoined
22:59:10  <devurandom>creationix: Thanks for looking into it! Would be nice if you could do some more extensive testing. So far I only ran the samples and tests I found in the git repos...
23:13:03  * ajacksifiedpart
23:16:38  * DarkGodquit (Remote host closed the connection)
23:17:46  * ajacksifiedjoined