s390x/3270: Detect for continued presence of a 3270 client
commite65a27209ca81ca8c720352b184441dba05f0fac
authorJing Liu <liujbjl@linux.vnet.ibm.com>
Fri, 14 Oct 2016 09:16:23 +0000 (14 11:16 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 4 May 2017 08:34:37 +0000 (4 10:34 +0200)
tree6d1e8d9888742fac3c55db32a1bfb6e11e4a9e5b
parent4996241a4a9dc82509d3fed07b1ee51d4d37bce6
s390x/3270: Detect for continued presence of a 3270 client

To ensure that we do not keep any 3270 sockets where the client is not
connected anymore, we send a packet with the timing mark option after
ten minutes of client inactivity. If the client does not answer it,
then the socket will be closed automatically.

This helps to ensure that there is no half-open situation on the 3270
socket.

Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Reviewed-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/char/terminal3270.c