Skip to content

Update TIdIOHandler.ConnectTimeout logic #3

Description

@rlebeau

Update TIdIOHandler to pass its ConnectTimeout value all the way to TIdStack.Connect() to get the timeout logic out of TIdIOHandler.ConnectClient(). This way, TIdStackWindows can be updated to use WSA...() functions when available (ie, WSAConnectByName() or WSAConnectByList(), which both have a timeout parameter), and thus avoid having to use the TIdConnectThread class to abort the connection after the timeout elapsed. Other TIdStack... classes can continue using TIdConnectThread when suitable platform-specific techniques are not available.

Metadata

Metadata

Assignees

Labels

Element: I/O HandlersIssues related to TIdIOHandler and descendantsElement: Socket StacksIssues related to OS socket APIs, TIdStack and TIdSocketList descedants, etcStatus: In ProgressIssue is being worked onType: EnhancementIssue is proposing a new feature/enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions