Use us_socket_is_closed, fix non-SSL/Windows build

This commit is contained in:
Alex Hultman
2018-12-19 09:22:05 +01:00
parent ff4f3341ad
commit 7c3585afee
5 changed files with 26 additions and 11 deletions
+2 -5
View File
@@ -29,9 +29,6 @@
#include <string_view>
#include <functional>
/* This is a hack for now on, update uSockets */
extern "C" int us_internal_socket_is_closed(struct us_socket *s);
namespace uWS {
template<bool> struct HttpResponse;
@@ -153,7 +150,7 @@ private:
// }
/* Was the socket closed? */
if (us_internal_socket_is_closed((struct us_socket *) s)) {
if (us_socket_is_closed((struct us_socket *) s)) {
return nullptr;
}
@@ -173,7 +170,7 @@ private:
httpResponseData->inStream(data);
/* Was the socket closed? */
if (us_internal_socket_is_closed((struct us_socket *) user)) {
if (us_socket_is_closed((struct us_socket *) user)) {
return nullptr;
}