EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Errors from CloseHandle event

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#30797
Posted: 09/22/2014 23:20:55
by wilsontay (Basic support level)
Joined: 08/06/2014
Posts: 11

Hi,

I'm doing a callback when the TElSFTPServer raises a CloseHandle event to perform some handling after the file has successfully been uploaded to the server. Whenever some error occurs in the callback I want the uploader to be notified that the file transfer has somehow failed.

I have tried to do so by setting the errorCode in the event handler parameters but the server doesn't seem to display the error to the user (the errorCode works for other events though). The message from user's SFTP client shows as though as the file upload was successfully completed.

Could you guys advise me how I can display an error message to the user when something exceptional happens within the CloseHandle event?

Thanks
#30799
Posted: 09/23/2014 08:30:17
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Indeed the problem exists. The fix will be included into the next build.
#30802
Posted: 09/23/2014 13:23:52
by wilsontay (Basic support level)
Joined: 08/06/2014
Posts: 11

Hi,

Thanks for the reply.

That sounds cool but I come across another thread saying that it is not possible to implement error reporting in CloseHandle. I'm not sure if this applies also to my case since it is a different product. The thread link is https://www.eldos.com/forum/read.php?FID=13&TID=5423&MID=30280#message30280.

From my current understanding of SBB the user session is maintained until the end of CloseHandle event. In other words it is still possible to notify users about any errors that may happen during the closing of the handle but the thread link above suggests otherwise. Could you let me know if it is indeed possible to have error reporting in close handle event?

Thanks again!
#30803
Posted: 09/23/2014 14:36:55
by Ken Ivanov (EldoS Corp.)

The thread you referenced concerns a different product, Callback File System, and is only applicable to the same. In fact, there is nothing common between the two CloseHandle() methods here and there except their names.

Quote
From my current understanding of SBB the user session is maintained until the end of CloseHandle event.

Not exactly. The client issues a CloseHandle() command whenever it decides to close a virtual file opened on the server. The session remains active; the client can proceed with the interaction by opening other files and eventually closing them with subsequent CloseHandle() calls.

Ken
#30863
Posted: 10/01/2014 20:49:37
by wilsontay (Basic support level)
Joined: 08/06/2014
Posts: 11

Quote
Vsevolod Ievgiienko wrote:
Thank you for contacting us.

Indeed the problem exists. The fix will be included into the next build.


When will the next build be available?
#30866
Posted: 10/02/2014 00:26:49
by Vsevolod Ievgiienko (EldoS Corp.)

In 2-3 weeks.
#31191
Posted: 10/29/2014 22:19:49
by wilsontay (Basic support level)
Joined: 08/06/2014
Posts: 11

Hi,

I've just upgraded my system to use the latest release (28th Oct) and it seems that the issue is still existing. Has it been fixed or is there anything additional I should do to display an error message should an exception is thrown within the CloseHandle event?

Thanks
#31196
Posted: 10/30/2014 02:46:57
by Vsevolod Ievgiienko (EldoS Corp.)

Sorry, the issue is still in the TODO list.
#31200
Posted: 10/30/2014 05:04:24
by wilsontay (Basic support level)
Joined: 08/06/2014
Posts: 11

Any ETA when it will be fixed?
#31202
Posted: 10/30/2014 05:09:26
by Vsevolod Ievgiienko (EldoS Corp.)

We release builds every 3-4 weeks. The next build will include the fix.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 2013 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!