[Piuparts-devel] protocol changes for idle and arch (was: Re: for review: preview/compute-urls)

Andreas Beckmann debian at abeckmann.de
Mon Jun 4 12:30:26 UTC 2012

On 2012-06-04 14:07, Holger Levsen wrote:
> Probably by adding a new command, "architecture $arch",  to be issued by the 
> slave after master says "hello", to which master either replies "ok" or 
> "error"...

new protocol:
Master either says
  << hello
  << idle $N
if the slave should retry later.
The slave is still allowed to continue communication, e.g. to submit
logs. If the slave wants to continue:
  >> arch $ARCH
(at this point the master fetches Packages file and loads the db)
  << ok
(or "error" if arch is wrong without opening the db, closes the connection)
(or closes connection if something happened while initializing the db)

continue as usual


More information about the Piuparts-devel mailing list