summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_con/ecore_con.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index d4b50f4c8f..36d6415638 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -2463,11 +2463,7 @@ _ecore_con_server_flush(Ecore_Con_Server *obj)
2463 } 2463 }
2464 2464
2465 if (svr->ecs_state || (!(svr->type & ECORE_CON_SSL))) 2465 if (svr->ecs_state || (!(svr->type & ECORE_CON_SSL)))
2466#ifdef _WIN32
2467 count = send(svr->fd, (const char *)buf + *buf_offset, num, 0); 2466 count = send(svr->fd, (const char *)buf + *buf_offset, num, 0);
2468#else
2469 count = write(svr->fd, buf + *buf_offset, num);
2470#endif
2471 else 2467 else
2472 count = ecore_con_ssl_server_write(obj, buf + *buf_offset, num); 2468 count = ecore_con_ssl_server_write(obj, buf + *buf_offset, num);
2473 2469
@@ -2581,7 +2577,7 @@ _ecore_con_client_flush(Ecore_Con_Client *obj)
2581 if (num <= 0) return; 2577 if (num <= 0) return;
2582 Ecore_Con_Server_Data *host_server = eo_data_scope_get(cl->host_server, ECORE_CON_SERVER_CLASS); 2578 Ecore_Con_Server_Data *host_server = eo_data_scope_get(cl->host_server, ECORE_CON_SERVER_CLASS);
2583 if (!(host_server->type & ECORE_CON_SSL) && (!cl->upgrade)) 2579 if (!(host_server->type & ECORE_CON_SSL) && (!cl->upgrade))
2584 count = write(cl->fd, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num); 2580 count = send(cl->fd, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num, 0);
2585 else 2581 else
2586 count = ecore_con_ssl_client_write(obj, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num); 2582 count = ecore_con_ssl_client_write(obj, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num);
2587 } 2583 }