projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http_send.c: Get rid of write_ok().
[paraslash.git]
/
http_send.c
diff --git
a/http_send.c
b/http_send.c
index 329071502f92f30d087bf2a5d62e466522d3e7f7..a19836af52101fa00aa2b9fdc2d5a52d3c91ec31 100644
(file)
--- a/
http_send.c
+++ b/
http_send.c
@@
-164,7
+164,7
@@
static int queue_chunk_or_shutdown(struct http_client *hc, long unsigned chunk_n
return ret;
}
return ret;
}
-static void http_send(
long unsigned current_chunk,
+static void http_send(long unsigned current_chunk,
__a_unused long unsigned chunks_sent, const char *buf, size_t len)
{
struct http_client *hc, *tmp;
__a_unused long unsigned chunks_sent, const char *buf, size_t len)
{
struct http_client *hc, *tmp;
@@
-191,13
+191,7
@@
static void http_send( long unsigned current_chunk,
}
if (!len)
continue;
}
if (!len)
continue;
- if (!ret || write_ok(hc->fd) <= 0) {
- queue_chunk_or_shutdown(hc, current_chunk, 0);
- continue;
- }
-// PARA_DEBUG_LOG("sending %d -> %s\n", len, remote_name(hc->fd));
- ret = write(hc->fd, buf, len);
-// PARA_DEBUG_LOG("ret: %d\n", ret);
+ ret = http_write(hc->fd, buf, len);
if (ret < 0) {
http_shutdown_client(hc, "send error");
continue;
if (ret < 0) {
http_shutdown_client(hc, "send error");
continue;