00:03:35  * bmacjoined
00:05:32  * wilmoorequit (Ping timeout: 252 seconds)
00:09:01  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:14:23  * niftylettuce_quit (Quit: Connection closed for inactivity)
00:28:23  * joshonthewebjoined
00:38:41  * joshonthewebquit (Quit: Computer has gone to sleep.)
00:47:39  * crunchnodejoined
00:49:39  * bmacjoined
00:54:56  * crunchnodequit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:59:17  * oscargodsonquit (Ping timeout: 264 seconds)
01:06:30  * joshonthewebjoined
01:20:54  * crunchnodejoined
01:43:00  * mhernandez1joined
01:47:02  * iamdustanjoined
01:57:29  * kazuponjoined
01:57:34  * TheAceOfHeartsjoined
02:11:37  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:16:39  * joshonthewebquit (Quit: Computer has gone to sleep.)
02:28:33  * TheAceOfHeartspart
02:31:23  * mhernandez1quit (Remote host closed the connection)
02:38:47  * niftylettuce_joined
02:40:58  * bmacjoined
02:49:23  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:54:14  * bmacjoined
02:57:04  * bmacquit (Client Quit)
02:57:13  * basicdaysjoined
02:57:28  * csurapjoined
02:58:55  * bmacjoined
03:05:07  * crunchnodequit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:10:47  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
03:11:28  * katana_quit (Quit: FUZETSU~!)
03:11:59  * katana_joined
03:12:09  * iamdustanquit (Ping timeout: 255 seconds)
03:32:25  * wilmoorejoined
03:51:06  * kazuponquit (Remote host closed the connection)
04:06:19  <delaman>proudlygeek: looks good. maybe add some try catch error handling
04:12:48  * joshonthewebjoined
04:19:23  * csurapquit (Quit: csurap)
04:25:22  <rickharrison>Any examples out there of using koa and uploading to s3?
04:36:34  <rickharrison>jongleberry: With co-busboy, is it possible to get the length of the stream in the while loop?
04:41:45  * kazuponjoined
04:42:11  * yaru22quit (Ping timeout: 252 seconds)
04:56:19  * yaru22joined
05:33:54  * joshonthewebquit (Quit: Computer has gone to sleep.)
05:44:23  * niftylettuce_quit (Quit: Connection closed for inactivity)
06:39:33  * shesekquit (Ping timeout: 240 seconds)
06:41:28  * shesekjoined
06:44:03  * ramitosquit (Ping timeout: 272 seconds)
07:09:41  * boredzjoined
07:22:33  * wilmoorequit (Ping timeout: 240 seconds)
07:23:35  * wilmoorejoined
07:38:55  * wilmoorequit (Ping timeout: 244 seconds)
07:45:38  * wilmoorejoined
07:47:40  <jongleberry>depends if the client sends it
07:47:44  <jongleberry>i think you should be able to do
07:47:49  <jongleberry>stream.headers['content-length'], no?
07:47:55  <jongleberry>or i might've attached it as stream.length
07:58:36  * ramitosjoined
07:58:50  * ramitosquit (Remote host closed the connection)
08:04:45  <rickharrison>Yea I was trying with a multipart, which doesn't work i guess
08:04:56  <rickharrison>So I'm just using co-read to read all of the stream and then send it to s3
08:16:57  * joshonthewebjoined
08:21:16  <jongleberry>uh you're just buffering it
08:21:19  <jongleberry>i would just save it to disk
08:21:22  <jongleberry>upload it
08:21:25  <jongleberry>then delete it
08:21:44  <jongleberry>stupid s3 and their "gimme content-length!!!"
08:38:13  <rickharrison>Why save to disk over buffering in memory?
08:38:51  <rickharrison>I guess I can use co-multipart instead of co-busboy then
08:39:05  <jongleberry>because memory costs a lot more $ than disks
08:39:13  <rickharrison>Fair enough
08:39:18  <jongleberry>and you won't see much speed difference
08:39:38  <rickharrison>Do you know if heroku has any issues with disk writes
08:40:06  <jongleberry>what do you mean?
08:40:14  <jongleberry>just save it to the tmp folder and you should be fine
08:40:24  <jongleberry>and probably delete it when you're done with it
08:40:45  <rickharrison>Cool cool. I'll try out co-multipart in the morning. Appreciate the help.
08:51:48  * joshonthewebquit (Quit: Computer has gone to sleep.)
08:57:21  * joshonthewebjoined
09:19:32  * joshonthewebquit (Quit: Computer has gone to sleep.)
09:25:00  * joshonthewebjoined
09:36:02  * joshonthewebquit (Quit: Computer has gone to sleep.)
09:39:56  * joshonthewebjoined
10:46:29  * kazuponquit (Remote host closed the connection)
11:17:34  * joshonthewebquit (Quit: Computer has gone to sleep.)
11:17:57  * joshonthewebjoined
11:26:23  * roymilohjoined
11:29:04  * joshonthewebquit (Quit: Computer has gone to sleep.)
12:00:29  * wilmoorequit (Ping timeout: 264 seconds)
12:08:31  * iamdustanjoined
12:11:31  * joshonthewebjoined
12:40:08  * shesekquit (Ping timeout: 252 seconds)
13:05:28  * kazuponjoined
13:05:30  * kazuponquit (Remote host closed the connection)
13:05:58  * kazuponjoined
13:26:55  * mhernandez1joined
13:28:02  * mhernand_joined
13:31:50  * mhernandez1quit (Ping timeout: 252 seconds)
13:32:33  * mhernand_quit (Ping timeout: 240 seconds)
13:34:52  * bmacjoined
13:38:28  * mhernandez1joined
13:47:02  * crunchnodejoined
13:53:38  * roymilohquit (Remote host closed the connection)
14:24:28  * roymilohjoined
14:26:10  * roymilohquit (Read error: Connection reset by peer)
14:26:13  * roymiloh_joined
14:31:47  * roymiloh_quit (Ping timeout: 252 seconds)
14:38:05  * kazupon_joined
14:41:08  * kazuponquit (Ping timeout: 252 seconds)
14:48:33  * kazupon_quit (Remote host closed the connection)
14:49:00  * kazuponjoined
14:49:39  * iamdustanquit (Ping timeout: 255 seconds)
15:02:18  * mnm_joined
15:08:17  * Celrenheitjoined
15:08:54  * mnm_quit (Remote host closed the connection)
15:14:03  * iamdustanjoined
15:25:01  * TheAceOfHeartsjoined
15:27:32  * roymilohjoined
15:31:39  * TheAceOfHeartsquit (Quit: Leaving.)
15:32:53  * roymilohquit (Ping timeout: 272 seconds)
15:40:41  * iamdustanquit (Ping timeout: 264 seconds)
15:45:18  * roymilohjoined
15:50:08  * kazuponquit (Remote host closed the connection)
15:50:11  * wilmoorejoined
15:53:30  * iamdustanjoined
15:59:19  * kazuponjoined
15:59:23  * kazuponquit (Remote host closed the connection)
16:03:27  * ramitosjoined
16:04:48  * csurapjoined
16:08:03  * iamdustanquit (Ping timeout: 240 seconds)
16:09:20  * TheAceOfHeartsjoined
16:10:11  * iamdustanjoined
16:12:24  * roymilohquit (Remote host closed the connection)
16:16:33  * iamdustanquit (Ping timeout: 240 seconds)
16:25:16  * kazuponjoined
16:28:58  * kazuponquit (Remote host closed the connection)
16:29:25  * kazuponjoined
16:30:03  * kazuponquit (Read error: Connection reset by peer)
16:30:09  * kazupon_joined
16:38:18  * iamdustanjoined
16:38:37  * kazuponjoined
16:39:36  * kazuponquit (Client Quit)
16:40:45  * kazuponjoined
16:42:28  * kazupon_quit (Ping timeout: 244 seconds)
16:45:29  * kazuponquit (Remote host closed the connection)
16:45:56  * kazuponjoined
16:47:58  * kazupon_joined
16:48:02  * basicdaysquit (Quit: I'm out)
16:51:12  * iamdustanquit (Ping timeout: 240 seconds)
16:51:25  * kazuponquit (Ping timeout: 272 seconds)
16:51:30  * iamdustanjoined
16:57:47  * TheAceOfHeartspart
17:08:17  * kazupon_quit (Remote host closed the connection)
17:08:52  * mhernandez1quit (Remote host closed the connection)
17:15:22  * mhernandez1joined
17:19:07  * crunchnodequit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17:39:27  * oscargodsonjoined
17:57:31  * niftylettuce_joined
17:58:52  * crunchnodejoined
18:03:12  * iamdustanquit (Ping timeout: 240 seconds)
18:09:01  * kazuponjoined
18:13:57  * kazuponquit (Ping timeout: 255 seconds)
18:17:37  * iamdustanjoined
18:37:17  * iamdustanquit (Ping timeout: 245 seconds)
18:38:24  * iamdustanjoined
18:42:24  * jblzquit (Quit: leaving)
18:50:29  * Celrenheitquit (Quit: Textual IRC Client: www.textualapp.com)
19:05:12  * oscargodsonquit (Ping timeout: 245 seconds)
19:09:47  * kazuponjoined
19:13:19  * jblzjoined
19:15:11  * kazuponquit (Ping timeout: 272 seconds)
19:22:08  * mnm_joined
19:23:08  <rickharrison>jongleberry: With co-multipart, I don't think the length is passed with the file, is that correct? Do I need to make an fs.stat call prior to sending to s3?
19:25:14  * joshonthewebquit (Quit: Computer has gone to sleep.)
19:25:48  * kazuponjoined
19:31:05  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:31:42  * kazuponquit (Ping timeout: 240 seconds)
19:44:31  <rickharrison>Can I even pass the stream straight from co-multipart to s3?
19:44:34  <rickharrison>it seems like it is not readable?
19:47:31  <delaman>is it possible to manually trigger the middle to cascade in reverse order ? like instead of waiting till the end of the middleware?
19:48:44  <rickharrison>Do you mean stop going forward in the stack and start unwinding?
19:49:00  <rickharrison>You could just return; in the middleware
20:08:55  * mhernandez1quit (Remote host closed the connection)
20:10:02  * mnm_quit (Ping timeout: 252 seconds)
20:10:33  * mhernandez1joined
20:28:18  * kazuponjoined
20:33:00  * kazuponquit (Ping timeout: 255 seconds)
20:36:07  <jongleberry>passing the length is up to the client. i don't think it's guaranteed
20:36:28  <jongleberry>you should ask mscdex since we're just using his lib busboy
20:36:40  <jongleberry>delaman: you are doing osmething wrong if you have to do that
20:39:36  * bmacjoined
20:41:10  <delaman>rickharrison: yes . thanks that is exactly what i need and what i was talking about
20:41:54  <rickharrison>jongleberry: Presumably, though in co-mulitpart, since you saved the file to disk, you could have the length
20:42:02  <jongleberry>oh yeah
20:42:04  <jongleberry>then you would fs.stat
20:42:09  <jongleberry>but if you use a lib like knox, they would do that for you
20:42:29  <rickharrison>oh right, I'm an idiot, I forgot knox has a putFile method. I was doing fs.stat and then fs.createReadStream
20:42:31  <rickharrison>~_~
20:42:40  <delaman>rickharrison: this there anything "wrong" with calling 'return;' ?
20:42:41  <jongleberry>:D
20:43:03  <jongleberry>no
20:43:06  <jongleberry>early return is the best
20:43:52  <delaman>thanks
20:44:27  <delaman>general question. whats next for koa? like big feature wise
20:45:39  <rickharrison>koa's goal is to stay pretty lean I believe
20:46:10  <delaman>any plans on using more of the ES6 features into koa?
20:47:08  <jongleberry>there's no other features to use
20:47:22  <jongleberry>we'll just have to rethink things when es7 comes out
20:47:26  <jongleberry>i'm working on https://github.com/koajs/koala if you want more features
20:48:59  <delaman>looks good
20:49:04  * EvanCarrollquit (Ping timeout: 260 seconds)
20:49:27  <delaman>anyone recommend a good way to integrate primus into koa?
20:50:59  <delaman>like i see koa has a 'socket' feature. is that just node event emitter?
20:51:19  <jongleberry>it's just the node socket
20:51:20  <jongleberry>nothing special
20:51:27  <delaman>there a sexy way to integrate primus and replace the koa socket
20:51:38  <delaman>?
20:51:56  <jongleberry>it's req.socket
20:56:55  <delaman>yes
20:56:58  <delaman>this.req.socket
20:59:55  <delaman>so i would somehow just replace this with something with primus https://github.com/koajs/koa/blob/master/lib/request.js#L264
21:00:13  <delaman>prob do it when i start koa
21:00:16  * iamdustanquit (Ping timeout: 244 seconds)
21:04:23  * niftylettuce_quit (Quit: Connection closed for inactivity)
21:09:09  * mhernandez1quit (Remote host closed the connection)
21:15:14  * oscargodsonjoined
21:15:44  * bmacquit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:15:46  * wilmoorequit (Ping timeout: 244 seconds)
21:29:05  * kazuponjoined
21:29:48  * roymilohjoined
21:33:33  * kazuponquit (Ping timeout: 240 seconds)
21:39:41  * jblzquit (Quit: leaving)
21:42:35  * crunchnodequit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:47:46  * bloctocquit (Quit: Computer has gone to sleep.)
21:55:43  * bloctocjoined
22:18:40  * roymilohquit (Remote host closed the connection)
22:29:51  * kazuponjoined
22:34:22  * kazuponquit (Ping timeout: 245 seconds)
22:37:28  * bloctocquit (Quit: Textual IRC Client: www.textualapp.com)
22:38:19  * calvinmetcalfquit (Quit: Connection closed for inactivity)
23:06:28  * joshonthewebjoined
23:30:37  * kazuponjoined
23:35:44  * kazuponquit (Ping timeout: 252 seconds)
23:36:45  * csurapquit (Ping timeout: 272 seconds)
23:50:09  * shesekjoined
23:58:31  * boredzquit (Ping timeout: 244 seconds)