mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-01 11:21:25 -05:00
added bias to priority for forwarded turtle traffic
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5_QoS@4534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2ae508343c
commit
64bd8e2819
@ -872,6 +872,8 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item)
|
||||
// Routing of turtle tunnel items in a generic manner. Most tunnel packets will use this function, except packets designed for
|
||||
// contructing the tunnels and searching, namely TurtleSearchRequests/Results and OpenTunnel/TunnelOkItems
|
||||
//
|
||||
// Only packets coming from handleIncoming() end up here, so this function is able to catch the transiting traffic.
|
||||
//
|
||||
void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
||||
{
|
||||
#ifdef P3TURTLE_DEBUG
|
||||
@ -915,6 +917,9 @@ void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
||||
|
||||
_traffic_info_buffer.unknown_updn_Bps += static_cast<RsTurtleItem*>(item)->serial_size() ;
|
||||
|
||||
if(dynamic_cast<RsTurtleFileDataItem*>(item) != NULL)
|
||||
item->setPriorityLevel(QOS_PRIORITY_RS_TURTLE_FORWARD_FILE_DATA) ;
|
||||
|
||||
sendItem(item) ;
|
||||
return ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user