large keyring refresh fails with gpg 2.1.0: "Too many objects"

Werner Koch wk at
Fri Nov 7 11:17:46 CET 2014

On Thu,  6 Nov 2014 23:39, dkg at said:

> gpg: refreshing 2532 keys from hkp://
> gpg: keyserver refresh failed: Too many objects

This exhibits two problems:

The way refresh works without user ids given:

 - Walk over the keyring and create a list of all keyids. 
 - Show the number of keys to refresh ;-)
 - Use the standard keyserver_get to retrieve all keys, which is:
 - Walk over the list of search descriptions where there is one entry
   for each key and build a KS_GET command to send to dirmngr from
   that list.

The first is that we store all keyids in an array - that is something
which should be avoided.  However, that is how it hasl always worked.

The second is a regression.  We need to split the KS_GET command lines
send to dirmngr up into chunks so that they will make it through the
Assuan interface. 

GnuPG-bug-id: 1755



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list