Merge pull request #377 from ssiloti/dont-share-rx-buf

DHT nodes can NOT share a receive buffer
This commit is contained in:
Arvid Norberg 2016-01-10 22:42:31 -05:00
commit 7f98aef392
1 changed files with 1 additions and 6 deletions

View File

@ -254,14 +254,9 @@ private:
#endif
lt::udp::endpoint m_ep;
bool m_add_dead_nodes;
// since the simulation is single-threaded, only one socket at a time will
// actually be receiving a packet, so we can get away with just allocating
// one receive buffer, shared by all nodes
static char m_buffer[1300];
char m_buffer[1300];
};
char dht_node::m_buffer[1300];
dht_network::dht_network(sim::simulation& sim, int num_nodes)
{
m_sett.ignore_dark_internet = false;