Modify

Opened 5 years ago

Last modified 5 years ago

#2670 new Bug

TCP connection lost on blocking functions.

Reported by: FireFox Owned by:
Milestone: Component: AutoIt
Version: 3.3.11.3 Severity: None
Keywords: Cc:

Description

The connection seems to be closed when there's a blocking function called on the other side like MsgBox, FileOpenDialog.

Attachments (2)

server_#2670.au3 (901 bytes) - added by FireFox 5 years ago.
client_#2670.au3 (998 bytes) - added by FireFox 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by FireFox

Changed 5 years ago by FireFox

comment:1 Changed 5 years ago by FireFox

I made a tcp server in c++ and I discovered if the TCPRecv function returns an error it does NOT mean the connection is lost (the client is in autoit).

But why? The connection is still there so there is no reason for the function to return an error, otherwise it should return an error when nothing is received.

It would be nice to a dev to clarify me what is happening and how to check if the connection is still alive in case an error is returned (what is the best way at least), so I can update the help file for the tcp functions.

Also, I would like to point out that in the attachments I provided the tcprecv function returns an error code of -1 and the call to WSAGetError returns 0.

Last edited 5 years ago by FireFox (previous) (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.