Calinou has quit [Remote host closed the connection]
Calinou has joined #ipfs
Calinou has quit [Remote host closed the connection]
Calinou has joined #ipfs
Dead_Body15 has joined #ipfs
ThiefMaster`23 has joined #ipfs
ThiefMaster`23 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
dethos has joined #ipfs
Dead_Body15 has quit [Remote host closed the connection]
kevinsimper has joined #ipfs
MDude has quit [Ping timeout: 240 seconds]
<swedneck[m]1>
lol, the instant i connect to my gateway node i can load things
ylp has quit [Ping timeout: 240 seconds]
ylp has joined #ipfs
kevinsim_ has joined #ipfs
voipmonk0 has joined #ipfs
ygrek_ has quit [Ping timeout: 268 seconds]
kevinsim_ has quit [Client Quit]
voipmonk0 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
kevinsim_ has joined #ipfs
<kevinsim_>
Hi Ipfs
<kevinsim_>
Hi ipfs, I made this PubSub game and I use the websocket-start with IPFS. Yesterday I tried a demo at a meetup but the demo failed when more than 20 people tried to use it.
<kevinsim_>
How can I scale up my application, the problem was that the websocket connection was dropping, so I was only connected to at max 12 and some could reach 21-22 but we were 70 in total.
<kevinsim_>
I tried webrtc before, but it would often crash my browser after 5 minutes
<kevinsim_>
@lidel I could try that again and see how it is now in Chrome 69
<lidel>
kevinsim_, would be great, also, if you could post short summary of your issues with websockets (and paybe sources of demo app?) in the mentioned issue, that would be also helpful.
<lidel>
kevinsim_, thanks! I see you were using test ws-star, for production it is a good idea to host your own, it could improve the dropping situation
deni has joined #ipfs
<kevinsim_>
@lidel That is good advice, but will ws-star never work? What should new users of IPFS pubsub be guided about?
<lidel>
reality is that most of people do not see that note and just use default test instance.
<lidel>
lgierth, do we have any metrics for /dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star ? eg. known limits or usual load etc.
malaclyps has quit [Read error: Connection reset by peer]
Zahyl has joined #ipfs
<lidel>
kevinsim_, in the future there will be no need for rendezvous server, node will find discover a relay on its own, but right now it is work-in-progress (works in manual mode, but does not have discovery yet) https://github.com/ipfs/js-ipfs/tree/master/examples/circuit-relaying
<lidel>
but for now the best you can do is probably to run your own
joeyh_ has joined #ipfs
malaclyps has joined #ipfs
Zahyl has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<swedneck[m]1>
hmm, my gateway suddenly started returning 502, but i can't see any issues with my setup
<swedneck[m]1>
ipfs is running, gateway port is 8080, and nginx is proxying data from gateways.swedneck.xyz to 127.0.0.1:8080
jwindover has joined #ipfs
}ls{ has joined #ipfs
chedr17 has joined #ipfs
tsglove has quit [Quit: Leaving]
jwindover has quit [Ping timeout: 246 seconds]
chedr17 has quit [Remote host closed the connection]
tsglove has joined #ipfs
joeyh_ has quit [Read error: Connection reset by peer]
jacky has joined #ipfs
joeyh has joined #ipfs
lassulus has quit [Ping timeout: 252 seconds]
Watcher714 has joined #ipfs
<kevinsim_>
@lidel I will try to do that, but wouldn't it be the same as ws-star? Or woudn't other users be able to leech/misuse my server like ws-star is misused?
jwindover has joined #ipfs
<lidel>
kevinsim_, yes, but people would have to know about it and manually put your ws-star in their config, and reality is that everyone goes with test one because that is what is in the docs :)
jwindover has quit [Ping timeout: 246 seconds]
Watcher714 has quit [Ping timeout: 260 seconds]
<kevinsim_>
@lidel haha, will have to look into it, maybe also look at some stats about websocket dropped connections
lassulus has joined #ipfs
jwindover has joined #ipfs
joeyh_ has joined #ipfs
joeyh has quit [Read error: Connection reset by peer]
mauz555 has joined #ipfs
leeola has joined #ipfs
<rain2>
what's a wrapping dir?
<rain2>
is it possible to fetch a whole directory of small files in one go?
<ToxicFrog>
rain2: when adding objects to IPFS you can tell `ipfs add` to create a directory and store those objects (with their original names) inside it
graphene has quit [Remote host closed the connection]
<rain2>
perfect, so this contains 5 txt files
graphene has joined #ipfs
<rain2>
how would downloading that whole directory work in terms of the IPFS protocol?
<ToxicFrog>
I think just `ipfs pin --recursive QmPMMvxTc3BE9FTqP6J3azvK9Kyh8KwK6dUpkoyNfAXK5y`; that'll pin the directory and everything inside it, forcing the node to download it.
<ToxicFrog>
(it won't work with that specific hash because that node isn't part of the public swarm, though)
<ToxicFrog>
If you mean how do you do it using the Go or JS APIs, I don't know, but I assume there's API calls for recursive pin and recursive fetch.
<rain2>
the thing i was specifically wondering about is if the file had 1000 txt files in it, would that require 1000+ requests to fetch it all?
<rain2>
even if they were quite small files
<ToxicFrog>
That I don't know. If you're fetching them over HTTP using the IPFS->HTTP gateway, yes. If you're using IPFS directly you're now getting into the details of how stuff like bitswap works, I think, and I don't know anything about that.
<Kolonka[m]>
I want to say it would be 'Filsize/256' (KB) = X blocks you'd be requesting/fetching
<Kolonka[m]>
but don't quote me on that
<ToxicFrog>
Kolonka[m]: what if it's like 1024 1K files, though?
<Kolonka[m]>
and it might vary a bit if say, --raw-leaves wasn't used to encode the files
<Kolonka[m]>
if it was 1024 1K objects, then I believe you would make 1024 requests
<Kolonka[m]>
but I can't say for certain whether files are collated together
<Kolonka[m]>
like, when you're requesting simply the parent object hash
<Kolonka[m]>
because in that ideal scenario, the fetches should be cut down to just 4
mebus24 has joined #ipfs
<Kolonka[m]>
actually, I do suspect separate files are actually separate objects
<Kolonka[m]>
(meaning, 1024 requests for that)
<Kolonka[m]>
I'll ask a dev that when I see them
jwindover has quit [Ping timeout: 240 seconds]
<lgierth>
lidel: unfortunately not really -- i only know it starts falling apart at 300 or so
mebus24 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<lidel>
rain2, you can download a compressed archive of arbitrary directory tree via: curl -s "https://ipfs.io/api/v0/get?arg=/ipfs/QmRAJM5ByzuKKpzKKisGDwBPHzYqMvVrYC2PcVhkMnP3gd&archive=true&compress=true" > archive.tar.gz
<lidel>
;))
<rain2>
oh thats interesting, is that part of the HTTP gateway
<lidel>
yeah, a 'hidden' feature
cyberwolf[m] has joined #ipfs
<Kolonka[m]>
lgierth, lidel : can you clarify ToxicFrog's question for us?
<Kolonka[m]>
or rain2's
<Kolonka[m]>
ie, whether requests for files are made on an individual basis
joeyh has joined #ipfs
<lidel>
yeah, your node only stores what you explicitly fetched
joeyh_ has quit [Ping timeout: 245 seconds]
<lidel>
if you have a huge directory tree with a lot of items, you may only have parts you visited
<lidel>
if you want to 'preload' entire tree try something like this: ipfs refs -r /ipfs/QmPMMvxTc3BE9FTqP6J3azvK9Kyh8KwK6dUpkoyNfAXK5y/
gmoro_ has quit [Ping timeout: 240 seconds]
hurikhan77 has quit [Ping timeout: 252 seconds]
fayci has joined #ipfs
<cyberwolf[m]>
ping
hurikhan77 has joined #ipfs
gmoro has joined #ipfs
<lgierth>
or pin and unpin right away :)
<rain2>
in terms of the IPFS protocol will it make at least one connection for each file it gets?
fayci has quit [Remote host closed the connection]
<rain2>
if a peer has many of the files then we can use that single connection to get most of them?
jwindover has joined #ipfs
mauz555 has quit []
<lgierth>
yeah it'll reuse the connection
<lgierth>
it only ever has one connection to each peer and multiplexes all communication with that peer through that
<rain2>
nice
<cyberwolf[m]>
yes
bblindy has joined #ipfs
bblindy has quit [Client Quit]
bblindy has joined #ipfs
<swedneck[m]1>
is there any way to get previews of images in a directory on a gateway?
<swedneck[m]1>
seeing the mention of a hidden compress option made me wonder if such a hidden feature exists for this
<voker57>
no such option
<voker57>
unless it's super secret...
joeyh has quit [Ping timeout: 252 seconds]
konubinix has quit [Quit: ZNC 1.7.1+deb2 - https://znc.in]
zorprime has joined #ipfs
gmoro_ has joined #ipfs
gmoro has quit [Ping timeout: 268 seconds]
<swedneck[m]1>
rip
alexgr has quit [Remote host closed the connection]
<swedneck[m]1>
i also notice that directories aren't displayed differently from files at all, feature request/bug report time
<swedneck[m]1>
thanks, was just about to try to find that repo again
vivus has joined #ipfs
<swedneck[m]1>
video files also don't have a proper icon
joeyh has joined #ipfs
thunderbolt4 has quit [Ping timeout: 252 seconds]
<swedneck[m]1>
lidel: would it be possible to have an option in ipfs-companion to prompt all the mime option screens for the protocols up front?
<swedneck[m]1>
like instead of visiting an ipfs:// link and setting ipfs-companion to open those links, you can click a button and have all of them prompted at once
<lidel>
swedneck[m]1, not really, no API for that. we could open three tabs and force prompt on install, but that is bad UX
<lidel>
you really dont want three popups without any context what iss happening
<lidel>
*context on what is happening
plexigras has quit [Ping timeout: 240 seconds]
Mottengrotte has quit [Quit: Mottengrotte]
<swedneck[m]1>
well it could be under the experiments section, and explain why it opens 3 tabs
<swedneck[m]1>
"klicking this button will open one tab each for the ipfs://, ipns://, and dweb:/ protocols, so you can set your preferences for opening them"
<swedneck[m]1>
so it's the button part that's not feasible?
plexigras has joined #ipfs
joeyh_ has joined #ipfs
joeyh has quit [Ping timeout: 245 seconds]
pepesza has joined #ipfs
gmoro_ has quit [Remote host closed the connection]
gmoro has joined #ipfs
gmoro has quit [Ping timeout: 245 seconds]
gmoro has joined #ipfs
<lidel>
swedneck[m]1, yeah I dont see what is the added value between that and prompt on first use
<swedneck[m]1>
so you don't have to manually open each protocol once?
<lidel>
you still do, the only difference is you are 'doing it in bulk'
<lidel>
i mean, I get why you would want to do it in bulk, it is a chore
aerth has quit [Ping timeout: 256 seconds]
<lidel>
the thing is this is firefox-only, and I want to avoid vendor specific code
joeyh has quit [Read error: Connection reset by peer]
<xpitr>
swedneck[m]1: yeah something like that
<swedneck[m]1>
alright, i'm trying to figure out how in the world to redirect to a specific html page rn so too busy to test :P
Caterpillar has quit [Quit: You were not made to live as brutes, but to follow virtue and knowledge.]
joeyh has joined #ipfs
nimaje has quit [Ping timeout: 260 seconds]
mauz555 has quit []
nimaje has joined #ipfs
Sunflowery has quit [Read error: Connection reset by peer]
fazo has quit [Quit: fazo]
adin_ has quit [Ping timeout: 256 seconds]
Fessus has joined #ipfs
joeyh has quit [Ping timeout: 268 seconds]
joeyh_ has joined #ipfs
cris has quit [Ping timeout: 272 seconds]
romain18 has joined #ipfs
cris has joined #ipfs
jwindover has quit [Ping timeout: 268 seconds]
romain18 has quit [Remote host closed the connection]
jhulten has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joeyh_ has quit [Ping timeout: 245 seconds]
jwindover has joined #ipfs
joeyh has joined #ipfs
jwindover has quit [Ping timeout: 240 seconds]
spinza has quit [Ping timeout: 245 seconds]
spinza has joined #ipfs
SamM has quit [Ping timeout: 245 seconds]
jhulten has joined #ipfs
asymptotically has quit [Quit: Leaving]
SamM has joined #ipfs
jwindover has joined #ipfs
elkalamar has quit [Read error: Connection reset by peer]
elkalamar has joined #ipfs
elkalamar has quit [Read error: Connection reset by peer]
jwindover has quit [Ping timeout: 252 seconds]
elkalamar has joined #ipfs
SamM has quit [Ping timeout: 268 seconds]
pecastro has quit [Ping timeout: 240 seconds]
joeyh has quit [Read error: Connection reset by peer]
joeyh has joined #ipfs
SamM has joined #ipfs
elkalamar has quit [Ping timeout: 244 seconds]
<swedneck[m]1>
alright now ipfs.ipfs.swedneck.xyz should only allow /ipfs/ paths, and otherwise display an "error" page, and same for ipns.ipfs.swedneck.xyz and /ipns/ :P
jwindover has joined #ipfs
reashlin5 has joined #ipfs
jwindover has quit [Ping timeout: 260 seconds]
reashlin5 has quit [Remote host closed the connection]
joeyh has quit [Read error: Connection reset by peer]
joeyh has joined #ipfs
jwindover has joined #ipfs
jwindover has quit [Ping timeout: 245 seconds]
jwindover has joined #ipfs
jwindover has quit [Ping timeout: 268 seconds]
joeyh has quit [Ping timeout: 252 seconds]
jwindover has joined #ipfs
joeyh_ has joined #ipfs
jwindover has quit [Ping timeout: 240 seconds]
joeyh_ has quit [Read error: Connection reset by peer]