Agileutil v0.0.6 发布,Python RPC 框架

栏目: 软件资讯 · 发布时间: 4年前

内容简介:本次更新的版本是v0.0.6: 1.TCP/HTTP/UDP client 都支持了设置timeout 2.解决了客户端请求UDP协议RPC服务端时,请求失败情况下,客户端不能正常抛出异常的问题 3.解决timeout场景下,由于tcp粘包,超时后的新请求...

本次更新的版本是v0.0.6:

1.TCP/HTTP/UDP client 都支持了设置timeout

2.解决了客户端请求UDP协议RPC服务端时,请求失败情况下,客户端不能正常抛出异常的问题

3.解决timeout场景下,由于tcp粘包,超时后的新请求,接收到之前请求结果数据的bug. 

 

客户端指定超时时间:

from agileutil.rpc.client import TcpRpcClient

c = TcpRpcClient(servers = ['127.0.0.1:9988', '127.0.0.1:9989'], timeout=4)
resp = c.call(func = 'sayHello', args = ('zhangsan'))
print('resp', resp)

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Beginning Google Maps API 3

Beginning Google Maps API 3

Gabriel Svennerberg / Apress / 2010-07-27 / $39.99

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具