On Wednesday, June 27, 2018 at 7:37:24 AM UTC-7,
tyz...@gmail.com wrote:
> On Monday, June 25, 2018 at 11:09:50 PM UTC+2, Brad Lanam wrote:
> > On Monday, June 25, 2018 at 2:27:38 AM UTC-7,
tyz...@gmail.com wrote:
> > > Hello,
> > >
> > > I'm developing TCL package for STOMP and during extensive tests I found problem with sending messages over the socket to the server - some messages get lost just before server disconnects.
> > > I got notification about socket EOF after several 'puts'/'gets'/milliseconds
> > >
> > > I'm using TCL 8.6.8 on Windows 7
> > >
> > > Bellow you can find piece of code.
> > > The idea is to redirect messages to file buffer when server disconnects.
> > > Everything is working OK except I get lost some messages before TCL realized that socket does not exists anymore (in my case it can be hundreds messages).
> > >
> > >
> > > My question is: do you have any solution for such problem? I just need solution to be properly/fast notify about server disconnect.
> >
> >
> > I expect you will need an application level acknowledgement.
> >
> > There is tcp/ip buffering going on in your computer and in all the
> > routers and in the server, your sent messages could be anywhere
> > when the server stops receiving.
>
>
> Harald,
> The read is not a problem. I'm familiar with half close.
>
> Brand,
> I'm aware that the packages can be somewhere in between. Thus, I'm using VPN and local openVPN client to connect to server which allows me to effectively control connection.