Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bugfixing do find the existing sockets in the cache during accept()
[simgrid.git] / src / gras / Transport / sg_transport.c
index 2702998..53019f5 100644 (file)
@@ -58,7 +58,7 @@ gras_trp_select(double timeout,
        if (sock_iter->meas || !sock_iter->outgoing)
          continue;
 
-       if (sockdata->from_PID == r_pid) {
+       if (sockdata->to_PID == r_pid) {
          *dst=sock_iter;
          return no_error;
        }