Hi everyone!
My problem is that i have a function containing this:
It runs in separate thread from the main function, rr->sock is initialized(checked in gdb), but somewhy, the output of both printf and send(through browser) appears after a long delay, or instantly after the main thread is finished. Looks like it would happen the same way to any other stream. I tried to google the problem, but found nothing. I have tested the program on Mint 13 and Ubuntu 12.04 - both act the same. How to solve this thing?Code:printf("text"); send(rr->sock, "text", 4, 0);