Hello,
I am testing a kannel with fake smsc and I have noticed that sometimes sending
SMS using HTTP interface takes much more times than usuall.
My PHP code looks like this:
$start_time = microtime_float_count();
$fp = fsockopen($host, $port, $errno, $errstr, 30);
$connect_time = microtime_float_count();
fwrite($fp, $out);
while (!feof($fp)) {
$response[] = fgets($fp, 128);
}
fclose($fp);
$end_time = microtime_float_count();
$time1 = $connect_time - $start_time;
$time2 = $end_time - $connect_time;
I measured connection times and got the following results:
MO - 100 msgs/s, MT - 200 msgs/s
time1 (connection time):
0 seconds - 119211 messages,
3 seconds - 733 messages,
5 seconds - 11 messages,
9 seconds - 1 message.
All times are very close to round seconds:
[2.997710 - 3.040541]
[5.002302 - 5.035348]
9.026317
Strange that write/read can be slow either.
But the time intervals are more random - 4.562698, 5.275524, 5.442081,
6.039287, 6.412580
time2:
0s - 119794
1s - 147
2s - 7
3s - 3
5s - 3
6s - 2
Could I tune kannel to accept requests faster?
Thank you,
Gintautas