mantycore / chant

p2p anonymous chan/chat thing. In very early prototype state
7 stars 1 forks source link

File uploading is very iffy #32

Closed mantycore closed 5 years ago

mantycore commented 5 years ago

Server often fails with timeout to request the file being uploaded. It is unsafe to replicate a post without first ensuring that at least one server node have its attachments safely stored; so the protocol for creating post needs to be modified.

mantycore commented 5 years ago

Post (with attachments) creation protocol:

post is created files are loaded

browser node requests server nodes for attachment storage (broadcast)

server node replies with storage permission

browser node sends attachment

server node receives attachment server node sends reply confirmation for receiving attachment

when all attachments are confirmed by at least one server:

browser node broadcasts a poema for storage (without pre request, just a broadcast)

mantycore commented 5 years ago

More or less done. Todo:

mantycore commented 5 years ago

Unfinished TODOs are converted to separate tasks