This problem applies to any manner of TCP/IP data exchange, and in this case I'm using POE.
So, using POE::Component::Client::TCP, I'm trying to get some 32 bytes of data from a process. It goes like this. I send a command code, the other guy gets it, and then replies with 32 bytes of data. That's all on the localhost interface. So far so good. Ethereal shows what's going on and the 32 bytes of data are indeed replied. But then, the other guy, after sending his 32-byte reply, *immediately* disconnects, resulting in my POE::Component::Client::TCP exiting with:
Client 2 got read error 0 (Normal disconnection)
The ServerInput event never gets the data. So I tried getting the data using ServerError and ServerFlushed but it these also do not get the 32 bytes of data before the component exits. If only I could get the data then I could send it to another session to get it process.
Maybe I just got the whole thing not right... Maybe I should use a server component to try to get the data from this other process ?
How would you handle such a TCP/IP process that, once you query it for data, sends it and immediately disconnects.
Any suggestions appreciated !
In reply to Unexpected TCP/IP disconnect by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |