## 问题描述

NOTE: 即使在本文写时的最新版(v0.9.13)依然存在这个问题。

## 分析

Send data to the socket. The socket must be connected to a remote socket. The optional flags argument has the same meaning as for recv() above. Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to attempt delivery of the remaining data. For further information on this concept, consult the Socket Programming HOWTO.

## 解决

1. 自行打补丁；
2. 使用 git 上的 Pika: pip install git+https://github.com/pika/pika.git
3. 不用 Pika, 换其它的，比如 Kombu

PS: Pika 的发布也太不积极了，都怎么久了还不发新版本。