Apache Thrift TSimpleServer是否会丢弃请求?

时间:2016-07-15 18:39:57

标签: thrift

我正在做一些研究,并以非常高的速率(每秒100个请求)向Apache Python TSimpleServer发送请求。我注意到客户端说353个请求被发送到服务器,但是在一天结束时,服务器只接收345个请求。有谁知道出了什么问题?我不能使用TThreadedServer,因为底层库不是线程安全的,我只是想知道TSimpleServer是否以高rps丢弃请求。非常感谢!

1 个答案:

答案 0 :(得分:0)

我认为是我们的。由于函数声明为 $time = strtotime($_POST['date']); ^-integer ^---string $post_date = date("d-m-Y", strtotime($time)); ^^^^^^^---useless duplicate call, since you JUST did this anyways ,客户端必须打开传输而不是在函数调用后立即关闭它。