Hi, all!
Does anybody know if sockets have problems with certain amount of characters?
The situation:
I have opened a socket and created a "read-event" handler which calls a procedure. It works OK. But at certain amount of characters put in the socket (4096) the whole thing goes crazy. The procedure is called, but it is executed only up till the first "update" command. Then the readable-event of the socket triggers somehow again and the procedure is executed again (just untill it tries to read from the socket
and blocks there, because the socket is not yet filled at that time). I´ve tried to move the "update" command some lines forward. The result is the same - the first "update" met causes the read-event to trigger. If there are not 4096, but 4095 or 4097 characters read from the socket everything works OK.
Are there any "Voodoo numbers" in using sockets? :-]
Any ideas are appreciated
Does anybody know if sockets have problems with certain amount of characters?
The situation:
I have opened a socket and created a "read-event" handler which calls a procedure. It works OK. But at certain amount of characters put in the socket (4096) the whole thing goes crazy. The procedure is called, but it is executed only up till the first "update" command. Then the readable-event of the socket triggers somehow again and the procedure is executed again (just untill it tries to read from the socket
and blocks there, because the socket is not yet filled at that time). I´ve tried to move the "update" command some lines forward. The result is the same - the first "update" met causes the read-event to trigger. If there are not 4096, but 4095 or 4097 characters read from the socket everything works OK.
Are there any "Voodoo numbers" in using sockets? :-]
Any ideas are appreciated