mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 18:43:12 +02:00
+- Some more VFS/PHTML fixes, it actually works now, thanks to butter
This commit is contained in:
@@ -386,7 +386,9 @@ void sockprintf(HTTPd_Request *r, char *format, ...)
|
||||
vsprintf(r->inbuf, format, ap);
|
||||
strcat(r->inbuf, "\r\n");
|
||||
va_end(ap);
|
||||
send(r->fd, r->inbuf, strlen(r->inbuf), 0);
|
||||
set_blocking(r->fd, NULL);
|
||||
send(r->fd, r->inbuf, strlen(r->inbuf), 0),
|
||||
set_non_blocking(r->fd, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -161,7 +161,6 @@ DLLFUNC int h_u_phtml(HTTPd_Request *r)
|
||||
if (!strcmp(s, "DATA"))
|
||||
{
|
||||
time_t tmpnow;
|
||||
sockprintf(r, "%i<br>", section);
|
||||
if (section == SECTION_STATS)
|
||||
{
|
||||
tmpnow = TStime() - me.since;
|
||||
|
||||
@@ -155,8 +155,6 @@ DLLFUNC int h_u_vfs(HTTPd_Request *r)
|
||||
j = send(r->fd, &p->cache[i], p->cachesize - i, 0);
|
||||
if (j == -1)
|
||||
{
|
||||
ircd_log(LOG_ERROR, "send() error: %s",
|
||||
strerror(ERRNO));
|
||||
set_non_blocking(r->fd, NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user