[fpc-pascal] fpwrite error
Lionel Drevon
freepascal at adeli.fr
Tue Jun 21 01:33:31 CEST 2011
Hello everybody,
since i migrate to a 64bits hardware, i have compiled a old source with the last fpc 64 bits under linux.
(due to an old 32 bits compiled software using in a 32 bits hardware, which have the same beahaviour...)
I'have got some times an error during an fpwrite to a socket. (so it's happen some times...never when i test it with a telnet and it occurs 10% of connexion...)
The return shell error is 141 so it's seem to be for a broken socket.
How can freepascal handle this kind of problem?
it appends just after this instruction=
nb_emis:=fpwrite(client[i].csock,pp,serveur[i].buff_avail-serveur[i].buff_written);
Do i need to use the fpsetsockopt for the MSG_OOB+MSG_NOSIGNAL ?
Perhaps some have an idea on how doing this?
Regards.
More information about the fpc-pascal
mailing list