I have a program that creates two sockets. One for the browser and the other connecting to the server, given in the header. As long as I modify the header option "Content-Encoded: " from 'gzip,deflate' to 'true' the program works correctly, and a proper webpage is displayed in the browser. I been having a hard time lately trying to figure out whats wrong with my program when it recieves gzip encoded messages. Nothing interrupts either socket. All the receiving functions are buffered to 1000, yet I'll only get messages from 10-500 bytes at times. The server quits after 3 - 10 replies. The browser quits responding after that because the message was incomplete. Any ideas what might be causing this issue?