简体   繁体   English

正确关闭RemObjects Indy Http服务器

[英]Close properly a RemObjects Indy Http Server

I have a webservice using RemObjects and a TROIndyHTTPServer using Delphi XE. 我有一个使用RemObjects的Web服务和一个使用Delphi XE的TROIndyHTTPServer。 I don't know how to close manually the application without generate an access violation when the clients are executing webservice operations. 当客户端执行Web服务操作时,我不知道如何手动关闭应用程序而不会产生访问冲突。 I don't know how to abort the threads of the webservice that are executing the operations. 我不知道如何中止正在执行操作的Web服务的线程。 If I close the application sometimes the exe remains indefinitely executing and generates an access violation. 如果我关闭该应用程序,则该exe有时会无限期执行并生成访问冲突。

Thanks for the help 谢谢您的帮助

The Indy HTTP/TCP server (normally) allows clients to complete their current request when the server shuts down (by setting Active := False). Indy HTTP / TCP服务器(通常)允许客户端在服务器关闭时完成当前请求(通过设置Active:= False)。

If long-running requests cause this problem, it should be possible to reproduce it and use the debugger to analyze the AV further. 如果长时间运行的请求导致此问题,则应该可以重现它,并使用调试器进一步分析AV。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Delphi 7 Indy 9多线程HTTP服务器 - Delphi 7 Indy 9 multithreaded HTTP Server 如何修复 Windows 7 上的“服务器证书未使用 HTTP.SYS 正确配置”? - How to fix “the server certificate is not configured properly with HTTP.SYS” on Windows 7? 用于Delphi XE的SOAP服务器和客户端应用程序VCL + indy演示? - SOAP server and client application VCL+indy demo for Delphi XE? 通过SSL的INDY WebService包含具有HTTP协议的链接,而不是WSDL中的HTTPS - INDY WebService over SSL contains link with HTTP protocol instead of HTTPS in WSDL 在RemObjects Web服务中获取客户端IP地址 - Get clients ip address in a RemObjects webservice WCF 错误“这可能是由于在 HTTPS 情况下未使用 HTTP.SYS 正确配置服务器证书” - WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case" Web服务器代码无法正常工作 - Web server code not working properly 服务器证书回调未正确编译 - Server Certificate callback not compile properly CXF HTTP连接池CLOSE_WAIT - CXF HTTP Connection pooling CLOSE_WAIT 执行Web服务方法后如何关闭Jetty Http Connection - How to close jetty Http Connection after the web service method is executed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM