简单来说, 长连接对于要传输大数据的方式比较适合, 对于与那种短数据, 可以使用短连接. 对于服务器的资源消耗比较少.
https://www.cnblogs.com/0201zcr/p/4694945.html
引用
短连接的操作步骤是: 建立连接——数据传输——关闭连接...建立连接——数据传输——关闭连接 长连接的操作步骤是: 建立连接——数据传输...(保持连接)...数据传输——关闭连接