asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
* asheesh chuckles at the joys of nginx + websockets proxy
<ocdtrekkie> asheesh, I added more detail to my thoughts in another comment. With examples!
lukexj has quit [Quit: sudo rm -rf /home/life]
<asheesh> Thank you ocdtrekkie !
pouledodue has joined #sandstorm
jemc has joined #sandstorm
aldeka_limechat has quit [Remote host closed the connection]
pouledodue has quit [Quit: Textual IRC Client: www.textualapp.com]
phoenix1796 has joined #sandstorm
jemc has quit [Ping timeout: 276 seconds]
digitalcircuit has quit [Remote host closed the connection]
digitalcircuit has joined #sandstorm
afuentes has quit [Ping timeout: 244 seconds]
frigginglorious has joined #sandstorm
frigginglorious has quit [Ping timeout: 252 seconds]
frigginglorious has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
jemc has joined #sandstorm
saneki has quit [Ping timeout: 250 seconds]
saneki has joined #sandstorm
mrshu has quit [Ping timeout: 276 seconds]
mrshu has joined #sandstorm
jemc has quit [Ping timeout: 276 seconds]
davidjgraph has joined #sandstorm
davidjgraph has quit [Quit: -a- IRC for Android 2.1.33]
frigginglorious has joined #sandstorm
ThePurgingPanda has joined #sandstorm
ThePurgingPanda_ has quit [Ping timeout: 276 seconds]
asheesh has quit [Ping timeout: 265 seconds]
asheesh has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
xet7 has quit [Quit: Leaving]
phoenix1796 has quit [Quit: Connection closed for inactivity]
xet7 has joined #sandstorm
xet7 has quit [Client Quit]
xet7 has joined #sandstorm
gambatte has quit [K-Lined]
evernite has quit [Quit: ZNC 1.6.1 - http://znc.in]
evernite has joined #sandstorm
amyers has joined #sandstorm
amyers has quit [Remote host closed the connection]
amyers has joined #sandstorm
amyers has quit [Read error: Connection reset by peer]
evernite has quit [Quit: ZNC 1.6.1 - http://znc.in]
amyers has joined #sandstorm
evernite has joined #sandstorm
ecloud has quit [Ping timeout: 276 seconds]
tantalum has joined #sandstorm
ecloud has joined #sandstorm
amyers has quit [Ping timeout: 240 seconds]
amyers has joined #sandstorm
Gildou has joined #sandstorm
Gildou has quit [Client Quit]
afuentes has joined #sandstorm
evernite has quit [Quit: ZNC 1.6.1 - http://znc.in]
evernite has joined #sandstorm
evernite has quit [Quit: ZNC 1.6.1 - http://znc.in]
evernite has joined #sandstorm
evernite has quit [Client Quit]
evernite has joined #sandstorm
amyers has quit [Ping timeout: 252 seconds]
wuch has joined #sandstorm
amyers has joined #sandstorm
xet7 has quit [Quit: Leaving]
cmr has quit [Ping timeout: 265 seconds]
cmr has joined #sandstorm
cmr has joined #sandstorm
cmr has quit [Changing host]
robbintt has quit [Ping timeout: 265 seconds]
robbintt has joined #sandstorm
jemc has joined #sandstorm
phoenix1796 has joined #sandstorm
aldeka_limechat has joined #sandstorm
wuch has quit [Quit: WeeChat 1.5]
Telesight has joined #sandstorm
jemc has quit [Read error: Connection reset by peer]
jemc has joined #sandstorm
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #sandstorm
wuch has joined #sandstorm
esmiurium has quit [*.net *.split]
biotim has quit [*.net *.split]
gwillen has quit [*.net *.split]
[d__d] has quit [*.net *.split]
tannercollin has quit [*.net *.split]
ragesoss has quit [*.net *.split]
robbt has quit [*.net *.split]
eternaleye has quit [*.net *.split]
M-hrjet has quit [*.net *.split]
prettyvanilla has quit [*.net *.split]
TheJH has quit [*.net *.split]
Salt has quit [*.net *.split]
Aurelius_Home has quit [*.net *.split]
XgF has quit [*.net *.split]
decause has quit [*.net *.split]
maurer has quit [*.net *.split]
pdurbin has quit [*.net *.split]
mrdomino has quit [*.net *.split]
keturn has quit [*.net *.split]
jemc has quit [*.net *.split]
asheesh has quit [*.net *.split]
pie_ has quit [*.net *.split]
mrdon has quit [*.net *.split]
mokomull has quit [*.net *.split]
dlitz has quit [*.net *.split]
cstrahan has quit [*.net *.split]
indiebio has quit [*.net *.split]
derf- has quit [*.net *.split]
simonv3_ has quit [*.net *.split]
nolski has quit [*.net *.split]
daemoen has quit [*.net *.split]
bemasc has quit [*.net *.split]
Telesight has quit [*.net *.split]
TimePath[m] has quit [*.net *.split]
sydney_untangle has quit [*.net *.split]
sh_smith has quit [*.net *.split]
dograt has quit [*.net *.split]
Zertrin has quit [*.net *.split]
afuentes has quit [*.net *.split]
gillisig1 has quit [*.net *.split]
crw has quit [*.net *.split]
fkautz has quit [*.net *.split]
sknebel has quit [*.net *.split]
dcb- has quit [*.net *.split]
warren has quit [*.net *.split]
mattl has quit [*.net *.split]
phildini has quit [*.net *.split]
aggelos_ has quit [*.net *.split]
ecloud has quit [*.net *.split]
ckocagil has quit [*.net *.split]
patrickod has quit [*.net *.split]
phoenix1796 has quit [*.net *.split]
robbintt has quit [*.net *.split]
tantalum has quit [*.net *.split]
mrshu has quit [*.net *.split]
gillisig has quit [*.net *.split]
liam has quit [*.net *.split]
bpierre has quit [*.net *.split]
HalfEatenPie has quit [*.net *.split]
GauntletWizard has quit [*.net *.split]
sugarpuff has quit [*.net *.split]
tg has quit [*.net *.split]
cmr has quit [*.net *.split]
saneki has quit [*.net *.split]
JonTheNiceGuy[m] has quit [*.net *.split]
TC01 has quit [*.net *.split]
niekie has quit [*.net *.split]
ftoad has quit [*.net *.split]
iangreenleaf has quit [*.net *.split]
tdfischer has quit [*.net *.split]
reisi has quit [*.net *.split]
aundro has quit [*.net *.split]
Zertrin[m] has quit [*.net *.split]
nwf has quit [*.net *.split]
DanC_ has quit [*.net *.split]
thesoenke has quit [*.net *.split]
dzho has quit [*.net *.split]
wuch has quit [*.net *.split]
aldeka has quit [*.net *.split]
ocdtrekkie has quit [*.net *.split]
dagelf has quit [*.net *.split]
amyers has quit [*.net *.split]
Jan\ has quit [*.net *.split]
Lionel_Debroux has quit [*.net *.split]
kxra has quit [*.net *.split]
rafaelmartins has quit [*.net *.split]
_iwc has quit [*.net *.split]
evernite has quit [*.net *.split]
hlieberman has quit [*.net *.split]
NhanH has quit [*.net *.split]
ripdog has quit [*.net *.split]
gkoz has quit [*.net *.split]
kentonv has quit [*.net *.split]
jparyani has quit [*.net *.split]
shachaf has quit [*.net *.split]
KCinJP has quit [*.net *.split]
xming_ has quit [*.net *.split]
aldeka_limechat has quit [*.net *.split]
ThePurgingPanda has quit [*.net *.split]
Lord has quit [*.net *.split]
davidar has quit [*.net *.split]
larjona has quit [*.net *.split]
zeroish has quit [*.net *.split]
TC02 has quit [*.net *.split]
mmercer has quit [*.net *.split]
CaptainCalliope has quit [*.net *.split]
nwf has joined #sandstorm
dzho has joined #sandstorm
cstrahan has joined #sandstorm
mokomull has joined #sandstorm
Zertrin[m] has joined #sandstorm
simonv3_ has joined #sandstorm
DanC_ has joined #sandstorm
daemoen has joined #sandstorm
bemasc has joined #sandstorm
nolski has joined #sandstorm
derf- has joined #sandstorm
dlitz has joined #sandstorm
indiebio has joined #sandstorm
mrdon has joined #sandstorm
thesoenke has joined #sandstorm
asheesh has joined #sandstorm
jemc has joined #sandstorm
pie_ has joined #sandstorm
M-hrjet has joined #sandstorm
Salt has joined #sandstorm
HalfEatenPie has joined #sandstorm
bpierre has joined #sandstorm
GauntletWizard has joined #sandstorm
Zertrin_ has joined #sandstorm
sugarpuff has joined #sandstorm
decause_ has joined #sandstorm
eternaleye has joined #sandstorm
ocdtrekkie has joined #sandstorm
jparyani has joined #sandstorm
afuentes has joined #sandstorm
sknebel has joined #sandstorm
fkautz has joined #sandstorm
dcb- has joined #sandstorm
crw has joined #sandstorm
aggelos_ has joined #sandstorm
warren has joined #sandstorm
gillisig1 has joined #sandstorm
mattl has joined #sandstorm
phildini has joined #sandstorm
shachaf has joined #sandstorm
amyers has joined #sandstorm
amyers has quit [Read error: Connection reset by peer]
fkautz has quit [Ping timeout: 240 seconds]
mattl has quit [Ping timeout: 240 seconds]
sugarpuff has quit [Ping timeout: 250 seconds]
gleb has joined #sandstorm
kentonv has joined #sandstorm
aldeka has joined #sandstorm
biotim has joined #sandstorm
esmiurium has joined #sandstorm
gwillen has joined #sandstorm
[d__d] has joined #sandstorm
tannercollin has joined #sandstorm
ragesoss has joined #sandstorm
robbt has joined #sandstorm
prettyvanilla has joined #sandstorm
bpierre has quit [Ping timeout: 250 seconds]
cstrahan has quit [Ping timeout: 255 seconds]
XgF has joined #sandstorm
evernite- has joined #sandstorm
Lionel_Debroux has joined #sandstorm
amyers has joined #sandstorm
rafaelmartins has joined #sandstorm
M-hrjet has joined #sandstorm
M-hrjet has quit [Changing host]
amyers has quit [Read error: Connection reset by peer]
dagelf has joined #sandstorm
niekie has joined #sandstorm
TC01 has joined #sandstorm
iangreenleaf has joined #sandstorm
ftoad has joined #sandstorm
cmr has joined #sandstorm
saneki has joined #sandstorm
tdfischer has joined #sandstorm
mrdomino has joined #sandstorm
reisi has joined #sandstorm
aundro has joined #sandstorm
Aurelius_Home has joined #sandstorm
ThePurgingPanda has joined #sandstorm
aldeka_limechat has joined #sandstorm
davidar has joined #sandstorm
Lord has joined #sandstorm
larjona has joined #sandstorm
mmercer has joined #sandstorm
TC02 has joined #sandstorm
zeroish has joined #sandstorm
patrickod has joined #sandstorm
ckocagil has joined #sandstorm
ecloud has joined #sandstorm
keturn has joined #sandstorm
eternaleye has joined #sandstorm
eternaleye has quit [Changing host]
kxra has joined #sandstorm
xming has joined #sandstorm
phoenix1796 has joined #sandstorm
robbintt has joined #sandstorm
tantalum has joined #sandstorm
maurer has joined #sandstorm
liam has joined #sandstorm
mrshu has joined #sandstorm
pdurbin has joined #sandstorm
gillisig has joined #sandstorm
Jan\ has joined #sandstorm
sydney_untangle has joined #sandstorm
dograt has joined #sandstorm
sh_smith has joined #sandstorm
TimePath[m] has joined #sandstorm
Telesight has joined #sandstorm
TheJH has joined #sandstorm
kxra has joined #sandstorm
kxra has quit [Changing host]
amyers has joined #sandstorm
JonTheNiceGuy[m] has joined #sandstorm
tg has joined #sandstorm
hlieberman has joined #sandstorm
_iwc has joined #sandstorm
_iwc has quit [K-Lined]
NhanH has joined #sandstorm
xet7 has joined #sandstorm
ripdog has joined #sandstorm
decause_ is now known as decause
decause has quit [Changing host]
decause has joined #sandstorm
CaptainCalliope has joined #sandstorm
phoenix1796 has quit [Quit: Connection closed for inactivity]
cstrahan has joined #sandstorm
sugarpuff has joined #sandstorm
fkautz has joined #sandstorm
davidjgraph has joined #sandstorm
evernite- has quit [Quit: ZNC 1.6.1 - http://znc.in]
mattl has joined #sandstorm
crw has quit [Quit: leaving]
amyers has quit [Ping timeout: 250 seconds]
bpierre has joined #sandstorm
KCinJP has joined #sandstorm
gambatte has joined #sandstorm
mrshu has quit [Ping timeout: 260 seconds]
mrshu has joined #sandstorm
davidjgraph has quit []
* asheesh waves
<liam> bai
<asheesh> Oh dear, are you vanishing?
<liam> you're the one waving
<asheesh> Oh.
* asheesh waves a friendly hello to all, this early-afternoon SF time.
* patrickod waves back
<patrickod> how's it going?
<asheesh> Pretty OK! I'm at Revolution Cafe where someone has decided to play their piano.
<liam> I'm wishing I had the foresight to forward port 22 on my server at home. Bored :P
<asheesh> Don't suppose you forwarded any other ports?
afuentes has quit [Ping timeout: 265 seconds]
<zarvox> ♥ piano
<asheesh> I should have been live streaming!
<asheesh> i,i want to buy: sandstorm app for live streaming
<zarvox> asheesh: what kind of live streaming are we talking here?
<asheesh> Well the piano music is over, but I was thinking basically I broadcast w/ laptop mic => icecast on Sandstorm => you listen via *.m3u URL
<patrickod> is icecast packaged?
isd has joined #sandstorm
<asheesh> Nope, hence "want to buy" (which is a semi-joke since I am hoping it'll magically appear instead)
<liam> https://github.com/vbence/stream-m could probably package something like this. Although I think you mean audio streaming, not video streaming
<liam> and the stream publication and viewing is all done over http, so it'd probably be fairly compatible with oasis
<asheesh> Yeah but video would be 100% A-OK with me.
* patrickod needs to read up on sandstorm's network interface stuff
<asheesh> liam: If you're going the Java route, see also: https://groups.google.com/forum/#!msg/sandstorm-dev/aXANGBt7BSA/YGaDgTklAQAJ
<patrickod> asheesh: how would an m3u playlist point to the sandstorm instance, using the grain subdomain and HTTP transport to serve the audio?
<liam> woah woah woah hey, i've gotta finish phabricator first
<liam> git bugs are driving me mad
<zarvox> liam: ;_;
<zarvox> anything I can do to help?
<liam> yeah, fix it :P
<liam> if you undo that change to that file
<liam> the folder in /var/assets/repos stops appearing when you create a new repo. which is how it should be
<liam> but the problem is, the phabricator daemons should be creating it instead
<asheesh> patrickod: I figure the m3u can embed a HTTP(S) Basic Auth token; see also: https://docs.sandstorm.io/en/latest/developing/http-apis/ , specifically https://docs.sandstorm.io/en/latest/developing/http-apis/#creating-an-offer-template
<liam> but they're not
<asheesh> i.e. not the grain subdomain, but this: "Sandstorm allows apps to expose their HTTP APIs at a permanent URL, as opposed to ephemeral domains used within the grain-frame. Sandstorm does access control on each inbound HTTP API request to the app."
<zarvox> liam: wonder if the phabricator daemons are dying for some reason
<patrickod> ahh so "offer templates" is the mechanism by which gitweb etc... create the git clone instructions using the appropriate credentials
<liam> i haven't even looked at the logs :P
<liam> because I wasn't sure exactly whether that is what should be happening, so i set up a dedicated/proper phabricator install and, yep, it should be happening
davidjgraph has joined #sandstorm
<zarvox> *nod*
<liam> and that's the point where I said that I wished I had the foresight to forward port 22
<liam> because I've been developing on my in-home server that I haven't exposed to the world, and now i'm just stuck at work and bored
Telesight has quit [Quit: Leaving.]
mrshu has quit [*.net *.split]
mattl has quit [*.net *.split]
tg has quit [*.net *.split]
maurer has quit [*.net *.split]
kxra has quit [*.net *.split]
pdurbin has quit [*.net *.split]
robbintt has quit [*.net *.split]
xming has quit [*.net *.split]
tantalum has quit [*.net *.split]
gillisig has quit [*.net *.split]
liam has quit [*.net *.split]
xming_ has joined #sandstorm
xming_ has joined #sandstorm
xming_ has quit [Changing host]
robbintt_ has joined #sandstorm
tantalum has joined #sandstorm
maurer has joined #sandstorm
kxra has joined #sandstorm
liam has joined #sandstorm
pdurbin has joined #sandstorm
tantalum has quit [Client Quit]
mrshu has joined #sandstorm
tg has joined #sandstorm
mattl has joined #sandstorm
gillisig has joined #sandstorm
<zarvox> liam: is usr/bin/git-http-backend a wrapper script you created? I'm only finding it at /usr/lib/git-core/git-http-backend
eternaleye has quit [Changing host]
eternaleye has joined #sandstorm
<liam> zarvox, yes. it's just a sh script that passes to the git-core script. it was that or modify the path for phabricator, and that was easier
<liam> the sandstorm-files.list must be missing it
<liam> actually nvm that makes no sense, i have to add it to the build file, ty
<zarvox> liam: just filed a couple PRs with small patches
<liam> yeah those comments in phabricator.ini are actually just for testing
<liam> i accidentally committed :P
<zarvox> Heh. Feel free to reject/close and submit a better patch :)
<liam> also. is it possible for me to detect whether i'm in dev mode or not? within build.sh in particular
<zarvox> no, we currently have no provisions for distinguishing between for-dev and not-for-dev builds
<zarvox> I imagine you'd like to turn off the aggressive caching or something when you're "developing" but leave it on for "production"?
<asheesh> Arguably you can detect dev mode by seeing if ptrace works.
<liam> yes, exactly, zarvox. the aggressive caching is actually so good that it's impossible to dev with it on, even the standard cache-busting scripts don't break it lol
<zarvox> Heh.
<zarvox> asheesh: oh, that's an interesting idea. Though perhaps it'd be nicer if we passed dev-mode an environment variable by default.
<zarvox> Alternately, detect the filesystem backing / and if it's fuse, assume devmode?
<asheesh> Hah, if FUSE is detectable, then that works too.
<asheesh> And yeah - I think that "is dev mode" is a subtle mess because it may not Do What I Mean, in that people might run the app in dev mode, then pack it, and then end up with their "dev mode" stuff packed, and then what good was that?
<asheesh> But it could be for 100% runtime stuff.
<mokomull> zarvox: I didn't think /proc/mounts was readable ;)
<mokomull> asheesh: I've definitely broken things when I didn't actually test in a non-dev environment.
<zarvox> mokomull: man 2 statfs
<mokomull> __SWORD_TYPE favorite type
* asheesh snickers.
<mokomull> ... how many definitions of WORD are there?
<mokomull> > buf is a pointer to a statfs structure defined approximately as follows
<mokomull> yes I like my buffers approximately defined.
<mokomull> zarvox: TIL. I'm so used to the Linux ABI being "put random crap in /proc"
<zarvox> mokomull: wow, I think that may be the first time I've taught you about a kernel API rather than vice-versa!
* zarvox beams
<mokomull> zarvox: you "taught" me vmsplice() once ;)
<zarvox> touché
davidjgraph has quit [Remote host closed the connection]
<isd> So, ipNetwork uses ByteStream to do the actual reading/writing from a tcp socket. Can I rely on sandstorm to call done() when the connection is closed from the other end? I'm hitting an issue with IRC Idler where the connection seems to drop at some point, but the app never notices.
<zarvox> liam: FWIW, when I create a repo through the UI, I observe /var/assets/repos/1 is created
<zarvox> and then I can clone it
<liam> HEAD or after you remove the logic from that commit i linked?
<liam> are there any files in /var/assets/repos/1/hooks that aren't *.sample ?
<zarvox> after I remove the logic from the commit you linked
<zarvox> hooks/pre-receive exists
<liam> wtf
<zarvox> is your git-http-backend executable?
<liam> yes, git pushing and pulling was working
<liam> i'm just going to reprovision
<zarvox> Yeah, the nice thing about sandstorm is that it makes making new grains super easy :)
<dwrensha> isd: Hm... Perhaps it ought to detect the "end" event as well, on call `done()` then too.
<zarvox> dwrensha: isd: shouldn't that be client.on("end" not "close"?
<dwrensha> I won the race!
* zarvox salutes dwrensha
<isd> zarvox: no idea; not terrible familiar with node/js/metor stuff
<isd> *terribly
<liam> zarvox: i /may/ have spent the past ~week of spare time debugging a non-issue. If this was for work, don't tell my boss
<dwrensha> liam: care to share what the issue was?
<isd> node.js docs san "close" is when the connection is fully shut down, so yeah, that's not going to call done() if my end of the connection hasn't already done so
<liam> dwrensha, probably something i did within `enter-grain`. I don't know exactly, but re-provisioning made it disappear
<isd> It probably should be "end," and that's probably why I'm never getting a disconnect.
<zarvox> dwrensha: do you want to write that patch (also handling "end") or should I?
* dwrensha thinks about how we could write a test to catch this
<liam> actually, no, not enter-grain. Within vagrant vm ssh
<dwrensha> we need some server listening on a TCP port, where it calls shutdown on the write half of connected sockets
<dwrensha> currently our ipnetwork test connects to http://zarvox.org
<zarvox> oh does it still hit my personal server? hilarious
<dwrensha> or maybe not
<zarvox> nah, it hits http://build.sandstorm.io
<zarvox> it's a text box you can put any http:// url in
<dwrensha> if the test app has an IpNetwork and an IpInterface, can it connect to itself?
<zarvox> in theory, yes
<dwrensha> which IP address does IpInterface listen on?
<zarvox> in theory it can also connect to mongo
<zarvox> dwrensha: ::: I think?
<dwrensha> the implementation appears to just do `server.listen(port)`
<dwrensha> which means "every available interface", I think?
<dwrensha> so in particular 127.0.0.1
<dwrensha> so this sounds like a possible test to write
<ocdtrekkie> Life would be so much easier if I learned to use Node properly.
<zarvox> it's not immediately clear to me that we can emulate TCP connections as might be encountered in the wild with IpInterface/IpNetwork, but possibly!
<dwrensha> I'm not sure what you mean by "emulate TCP connections as might be encountered in the wild".
<liam> encountered a wild tcp connection. IP used ACK
<zarvox> are we able to indicate half-open connections? timeouts?
<zarvox> node by default disallows half-open connections, FWIW
<dwrensha> you mean you can't call shutdown_write() on a socket in node?
<zarvox> you can if you set allowHalfOpen to true, but we provide no way for apps to request such a thing from a TcpPort handle they have
<dwrensha> our TCP connections are two parallel ByteStreams
<dwrensha> if one is closed, then the socket is "half open"
<dwrensha> where "closed" means "done()" has been sent, I think
<zarvox> oh, then we should *always* be doing that instead
<dwrensha> or maybe "closed" means "all references have been dropped?
<zarvox> I don't know what the intended semantics are, but maybe we should decide on some and document them
<isd> I've been writing code under the assumption than done() is equivalent to close()
<isd> The docs seemed fairly clear iirc
* isd looks again