git-svn-id: svn://db.shs.com.ru/pip@84 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -168,7 +168,7 @@ void PIBaseTransfer::received(PIByteArray data) {
|
||||
}
|
||||
if (!is_pause) paused();
|
||||
is_pause = true;
|
||||
if (is_receiving && pause_tm.elapsed_m() > 10) {
|
||||
if (is_receiving && pause_tm.elapsed_m() > 40) {
|
||||
// piCout << "send pause";
|
||||
sendReply(pt_Pause);
|
||||
}
|
||||
@@ -202,7 +202,7 @@ bool PIBaseTransfer::send_process() {
|
||||
--i;
|
||||
piMSleep(1);
|
||||
if (is_pause) {
|
||||
piMSleep(10);
|
||||
piMSleep(40);
|
||||
// piCout << "send pause";
|
||||
sendReply(pt_Pause);
|
||||
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||
@@ -231,7 +231,7 @@ bool PIBaseTransfer::send_process() {
|
||||
continue;
|
||||
}
|
||||
if (is_pause) {
|
||||
piMSleep(10);
|
||||
piMSleep(40);
|
||||
// piCout << "send pause";
|
||||
sendReply(pt_Pause);
|
||||
if (pause_tm.elapsed_s() > timeout())return finish_send(false);
|
||||
@@ -345,7 +345,7 @@ void PIBaseTransfer::sendReply(PacketType reply) {
|
||||
header.type = reply;
|
||||
PIByteArray ba;
|
||||
ba << header;
|
||||
diag.sended(ba.size());
|
||||
if (is_sending || is_receiving) diag.sended(ba.size());
|
||||
sendRequest(ba);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user