Merge pull request #377 from ssiloti/dont-share-rx-buf
DHT nodes can NOT share a receive buffer
This commit is contained in:
commit
7f98aef392
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue