bus/driver: handle quotas for driver unicasts
The bus driver only ever sends solicited unicasts. They're either
replies or solicited directed signals (NameAcquired, NameLost). Hence,
all unicast-quota-failures must result in a client shutdown.
@@ -377,11 +377,14 @@ static int driver_send_unicast(Peer *receiver, Message *message) {
if (r)
return error_fold(r);
- /* XXX: handle quota */
r = connection_queue(&receiver->connection, NULL, message);
- if (r)
+ if (r) {
+ if (r != CONNECTION_E_QUOTA)
return error_fold(r);
+ connection_shutdown(&receiver->connection);
+ }
+
return 0;
}
