Solved Kqueue Problems

Tuxist

New Member


Messages: 2

I am porting my HTTP library at the moment to FreeBSD. My problem is that I get send and recv errors. Under Linux I don't have this errors.

My question what's wrong on my code.
https://github.com/Tuxist/libhttppp/blob/master/src/event/kqueue.cpp


complete code at github:
https://github.com/Tuxist/libhttppp

error output:
Code:
 valgrind ./test/httpsysinfo -p=8080 -a=0.0.0.0
==23706== Memcheck, a memory error detector
==23706== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==23706== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==23706== Command: ./test/httpsysinfo -p=8080 -a=0.0.0.0
==23706==
HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

HTTP Error: Socket recvata: Resource temporarily unavailable

Requesturl: /
HTTP Error: Socket sendata: Invalid argument

HTTP Note: Connection shutdown! (null)

^Cpid 23706 (memcheck-amd64-free): sigreturn rflags = 0x45
==23706==
==23706== HEAP SUMMARY:
==23706==     in use at exit: 19,959 bytes in 47 blocks
==23706==   total heap usage: 790 allocs, 743 frees, 672,325 bytes allocated
==23706==
==23706== LEAK SUMMARY:
==23706==    definitely lost: 96 bytes in 1 blocks
==23706==    indirectly lost: 0 bytes in 0 blocks
==23706==      possibly lost: 0 bytes in 0 blocks
==23706==    still reachable: 19,863 bytes in 46 blocks
==23706==         suppressed: 0 bytes in 0 blocks
==23706== Rerun with --leak-check=full to see details of leaked memory
==23706==
==23706== For counts of detected and suppressed errors, rerun with: -v
==23706== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
 

rigoletto@

Daemon
Developer

Reaction score: 836
Messages: 1,766

These questions more related to programming often gain more attention on Mail Lists ( and IRC ), where the development happens and you will find the majority of developers hanging.
 
Top