26 Feb
2018
26 Feb
'18
11 a.m.
Hi, Working Scenario: I have a scenario of single server and multiple client. server is constantly sending update to connected client. all the connection and transmission is async. Problem: lets say i have 3 client connected. which they are receiving update . if one client closed during in middle of transmitting. (killing the process of client ) my server crashes .. socket.async_write_some(buffer, [&](error_code& e, size_t size_) { if(e) { cout << e.message() << endl; } }); the last error i get is bad_file_descriptor . pfa : error thrown by gdb