From a53d14c46f035338d9247f22e31c19dfab0398f0 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 6 Dec 2006 18:36:14 +0000 Subject: [PATCH] blocking socket blocks... --- opentracker.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opentracker.c b/opentracker.c index bd47a24..1c0d558 100644 --- a/opentracker.c +++ b/opentracker.c @@ -7,6 +7,7 @@ #include "fmt.h" #include "iob.h" #include "str.h" +#include #include #include #include @@ -182,7 +183,7 @@ e404: } int main() { - int s=socket_tcp6b(); + int s=socket_tcp6(); uint32 scope_id; char ip[16]; uint16 port; @@ -253,6 +254,7 @@ int main() { buffer_putnlflush(buffer_2); io_close(i); } else if (l>0) { +buffer_puts(buffer_2,"Garr"); array_catb(&h->r,buf,l); if (array_failed(&h->r)) { httperror(h,"500 Server Error","request too long.");