aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lltransfermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/lltransfermanager.cpp')
-rw-r--r--linden/indra/llmessage/lltransfermanager.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/linden/indra/llmessage/lltransfermanager.cpp b/linden/indra/llmessage/lltransfermanager.cpp
index bfeedd0..43afa78 100644
--- a/linden/indra/llmessage/lltransfermanager.cpp
+++ b/linden/indra/llmessage/lltransfermanager.cpp
@@ -354,7 +354,7 @@ void LLTransferManager::processTransferInfo(LLMessageSystem *msgp, void **)
354 { 354 {
355 // Perhaps this stuff should be inside a method in LLTransferPacket? 355 // Perhaps this stuff should be inside a method in LLTransferPacket?
356 // I'm too lazy to do it now, though. 356 // I'm too lazy to do it now, though.
357 llinfos << "Playing back delayed packet " << packet_id << llendl; 357// llinfos << "Playing back delayed packet " << packet_id << llendl;
358 LLTransferPacket *packetp = ttp->mDelayedPacketMap[packet_id]; 358 LLTransferPacket *packetp = ttp->mDelayedPacketMap[packet_id];
359 359
360 // This is somewhat inefficient, but avoids us having to duplicate 360 // This is somewhat inefficient, but avoids us having to duplicate
@@ -365,7 +365,7 @@ void LLTransferManager::processTransferInfo(LLMessageSystem *msgp, void **)
365 { 365 {
366 if ((packetp->mDatap != NULL) && (size<(S32)sizeof(tmp_data))) 366 if ((packetp->mDatap != NULL) && (size<(S32)sizeof(tmp_data)))
367 { 367 {
368 memcpy(tmp_data, packetp->mDatap, size); 368 memcpy(tmp_data, packetp->mDatap, size); /*Flawfinder: ignore*/
369 } 369 }
370 } 370 }
371 status = packetp->mStatus; 371 status = packetp->mStatus;
@@ -474,6 +474,8 @@ void LLTransferManager::processTransferPacket(LLMessageSystem *msgp, void **)
474 ttcp->deleteTransfer(ttp); 474 ttcp->deleteTransfer(ttp);
475 return; 475 return;
476 } 476 }
477#if 0
478 // Spammy!
477 const S32 LL_TRANSFER_WARN_GAP = 10; 479 const S32 LL_TRANSFER_WARN_GAP = 10;
478 if(!ttp->gotInfo()) 480 if(!ttp->gotInfo())
479 { 481 {
@@ -487,6 +489,7 @@ void LLTransferManager::processTransferPacket(LLMessageSystem *msgp, void **)
487 << " from " << msgp->getSender() << ", got " << packet_id 489 << " from " << msgp->getSender() << ", got " << packet_id
488 << " expecting " << ttp->getNextPacketID() << llendl; 490 << " expecting " << ttp->getNextPacketID() << llendl;
489 } 491 }
492#endif
490 return; 493 return;
491 } 494 }
492 495
@@ -527,7 +530,7 @@ void LLTransferManager::processTransferPacket(LLMessageSystem *msgp, void **)
527 { 530 {
528 // Perhaps this stuff should be inside a method in LLTransferPacket? 531 // Perhaps this stuff should be inside a method in LLTransferPacket?
529 // I'm too lazy to do it now, though. 532 // I'm too lazy to do it now, though.
530 llinfos << "Playing back delayed packet " << packet_id << llendl; 533// llinfos << "Playing back delayed packet " << packet_id << llendl;
531 LLTransferPacket *packetp = ttp->mDelayedPacketMap[packet_id]; 534 LLTransferPacket *packetp = ttp->mDelayedPacketMap[packet_id];
532 535
533 // This is somewhat inefficient, but avoids us having to duplicate 536 // This is somewhat inefficient, but avoids us having to duplicate
@@ -538,7 +541,7 @@ void LLTransferManager::processTransferPacket(LLMessageSystem *msgp, void **)
538 { 541 {
539 if ((packetp->mDatap != NULL) && (size<(S32)sizeof(tmp_data))) 542 if ((packetp->mDatap != NULL) && (size<(S32)sizeof(tmp_data)))
540 { 543 {
541 memcpy(tmp_data, packetp->mDatap, size); 544 memcpy(tmp_data, packetp->mDatap, size); /*Flawfinder: ignore*/
542 } 545 }
543 } 546 }
544 status = packetp->mStatus; 547 status = packetp->mStatus;
@@ -738,8 +741,11 @@ LLTransferSourceChannel::LLTransferSourceChannel(const LLTransferChannelType cha
738 741
739LLTransferSourceChannel::~LLTransferSourceChannel() 742LLTransferSourceChannel::~LLTransferSourceChannel()
740{ 743{
741 LLPriQueueMap<LLTransferSource *>::pqm_iter iter; 744 LLPriQueueMap<LLTransferSource*>::pqm_iter iter =
742 for (iter = mTransferSources.mMap.begin(); iter != mTransferSources.mMap.end(); iter++) 745 mTransferSources.mMap.begin();
746 LLPriQueueMap<LLTransferSource*>::pqm_iter end =
747 mTransferSources.mMap.end();
748 for (; iter != end; ++iter)
743 { 749 {
744 // Just kill off all of the transfers 750 // Just kill off all of the transfers
745 (*iter).second->abortTransfer(); 751 (*iter).second->abortTransfer();
@@ -1176,7 +1182,7 @@ LLTransferPacket::LLTransferPacket(const S32 packet_id, const LLTSCode status, c
1176 mDatap = new U8[size]; 1182 mDatap = new U8[size];
1177 if (mDatap != NULL) 1183 if (mDatap != NULL)
1178 { 1184 {
1179 memcpy(mDatap, datap, size); 1185 memcpy(mDatap, datap, size); /*Flawfinder: ignore*/
1180 } 1186 }
1181} 1187}
1182 1188