mirror of https://github.com/adamdruppe/arsd.git
stupid dmd warnings are useless
This commit is contained in:
parent
0c328aa3b0
commit
b3df2871d2
23
cgi.d
23
cgi.d
|
@ -5134,19 +5134,20 @@ interface EventSourceServer {
|
|||
|
||||
version(fastcgi)
|
||||
throw new Exception("sending fcgi connections not supported");
|
||||
else {
|
||||
auto fd = cgi.getOutputFileHandle();
|
||||
if(isInvalidHandle(fd))
|
||||
throw new Exception("bad fd from cgi!");
|
||||
|
||||
auto fd = cgi.getOutputFileHandle();
|
||||
if(isInvalidHandle(fd))
|
||||
throw new Exception("bad fd from cgi!");
|
||||
EventSourceServerImplementation.SendableEventConnection sec;
|
||||
sec.populate(cgi.responseChunked, eventUrl, lastEventId);
|
||||
|
||||
EventSourceServerImplementation.SendableEventConnection sec;
|
||||
sec.populate(cgi.responseChunked, eventUrl, lastEventId);
|
||||
|
||||
version(Posix) {
|
||||
auto res = write_fd(s, cast(void*) &sec, sec.sizeof, fd);
|
||||
assert(res == sec.sizeof);
|
||||
} else version(Windows) {
|
||||
// FIXME
|
||||
version(Posix) {
|
||||
auto res = write_fd(s, cast(void*) &sec, sec.sizeof, fd);
|
||||
assert(res == sec.sizeof);
|
||||
} else version(Windows) {
|
||||
// FIXME
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue