Commit 232dfc41 authored by Reinhard Tartler's avatar Reinhard Tartler

Imported nxcomp-3.5.0-2.tar.gz

Summary: Imported nxcomp-3.5.0-2.tar.gz Keywords: Imported nxcomp-3.5.0-2.tar.gz into Git repository
parent 233de71f
ChangeLog: ChangeLog:
nxcomp-3.5.0-2
- Fixed TR11H02398. Solved a race condition when creating channels.
nxcomp-3.5.0-1 nxcomp-3.5.0-1
- Opened the 3.5.0 branch based on nxcomp-3.4.0-7. - Opened the 3.5.0 branch based on nxcomp-3.4.0-7.
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2011 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXCOMP, NX protocol compression and NX extensions to this software */ /* NXCOMP, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -1626,6 +1626,23 @@ int Proxy::handleControlFromProxy(const unsigned char *message) ...@@ -1626,6 +1626,23 @@ int Proxy::handleControlFromProxy(const unsigned char *message)
int channelId = *(message + 2); int channelId = *(message + 2);
// //
// Check if the channel has been dropped.
//
if (channels_[channelId] != NULL &&
(channels_[channelId] -> getDrop() == 1 ||
channels_[channelId] -> getClosing() == 1))
{
#ifdef TEST
*logofs << "Proxy: Dropping the descriptor FD#"
<< getFd(channelId) << " channel ID#"
<< channelId << ".\n" << logofs_flush;
#endif
handleDrop(channelId);
}
//
// Check if the channel is in the valid // Check if the channel is in the valid
// range. // range.
// //
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2011 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXCOMP, NX protocol compression and NX extensions to this software */ /* NXCOMP, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment