]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
blocking socket blocks...
authorerdgeist <>
Wed, 6 Dec 2006 18:36:14 +0000 (18:36 +0000)
committererdgeist <>
Wed, 6 Dec 2006 18:36:14 +0000 (18:36 +0000)
opentracker.c

index bd47a2498d28bc1289df6a0555344141e61b5da5..1c0d558058eb8873c51d64641f7dd481a330c216 100644 (file)
@@ -7,6 +7,7 @@
 #include "fmt.h"
 #include "iob.h"
 #include "str.h"
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -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.");