Skip to content

Session time out. #1

@cjkgit

Description

@cjkgit

In findClient() in TFTPServer/main.cpp
the session time out determination is suspect.
I think it should be more like:

	DWORD dwExpiration = g_Clients[i].dwLastSignOfLife + TFTP_SESSION_TIMEOUT;
	if (    g_Clients[i].eOpcode 
		 && (g_Clients[i].dwLastSignOfLife < dwNow)

// && (g_Clients[i].dwLastSignOfLife < dwExpiration) //error?
&& (dwNow >= dwExpiration) //better, since 'now' has hit the expiration time?
)
{

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions