Comments (6)
wooow:
func SendCommand(command *Command, server string) error {
conn, err := net.DialTimeout("tcp", server, time.Millisecond*300)
...
}
I'm apparently good at cli response time.
I think TRTTD here would be to -- instead of trying a random server -- see if there is a local server open by having a $configdir/lock
file. possible names:
.go-ipfs/lock
.go-ipfs/daemon
.go-ipfs/rpcaddr
Its content can be a multiaddr with the socket to use to talk to the daemon rpc endpoint:
# unix domain socket
/unix/Users/jbenet/.go-ipfs/ipfs.sock
# or tcp
/ip6/127.0.0.1/tcp/4001
bradfitz already did the heavy lifting of making a portable lock file lib: https://github.com/camlistore/lock
from kubo.
Im really impressed at your latency guess... Ill switch over to using a lockfile for daemon connections!
from kubo.
So, the camlistore lock library doesnt allow you to put and file content in the lock file itself. Im thinking we could have the lock file, and another file nearby that contains the daemon addr to connect to
from kubo.
Hmm wonder why it is. But yeah can use another file or a config value. (Writing one small file and writing the config are pretty much equiv).â
Sent from Mailbox
On Sat, Sep 20, 2014 at 2:12 PM, Jeromy Johnson [email protected]
wrote:
So, the camlistore lock library doesnt allow you to put and file content in the lock file itself. Im thinking we could have the lock file, and another file nearby that contains the daemon addr to connect to
Reply to this email directly or view it on GitHub:
#94 (comment)
from kubo.
Ugh... i wish the camlistore lock library had defined error types, it makes it difficult to differentiate between "Bad path to file!" and "Lock already exists!"... i may fork it
from kubo.
I beleive this has been solved and merged in...
from kubo.
Related Issues (20)
- Ability to toggle access to API endpoints grouped together for functionality based control HOT 2
- Hetzner netscan abuse warning. HOT 2
- Add basic UnixFS sanity check to 'ipfs files cp' HOT 1
- API.Authorizations configuration not effective or how to take effect HOT 1
- Remove client/rpc DHT commands
- do we want to keep this interface as []string, HOT 1
- "%APPDATA%\.ipfs\gateway" deleted HOT 2
- Add progress feedback to `ipfs get`
- ipfs daemon --mount not working HOT 3
- ipfs add --name does not exist HOT 2
- ipfs backup issue HOT 1
- Include go-ds-pebble as built-in plugin HOT 1
- need api for combine two files in kubo HOT 4
- when i use rpc.HttpApi.Object.Put(ctx,reader) upload file,return invalid character 'h' looking for beginning of value. whebn i download ,i find isn't similar with my origin data HOT 1
- Release 0.28 HOT 5
- Error: error loading plugins: open 127.0.0.1:5001\config: The filename, directory name, or volume label syntax is incorrect in my windows HOT 2
- denylist: `?format=car` does not skip directly blocked CIDs
- Prioritize announcement of pin roots HOT 2
- greetings from an alumnus, and invite to trial Gov4Git for making community management more efficient HOT 2
- panic: Post "http://192.168.1.127:4001/api/v0/version?": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\xdeJ\xd2\xf86\xcd\xf8]\t\x8a\x17\u0381\xadm\x7f$Ęł\v\xff\xe8\xaa&" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubo.