message-push | 基于Redis实现消息的定时推送 | Pub Sub library
kandi X-RAY | message-push Summary
kandi X-RAY | message-push Summary
基于Redis实现消息的定时推送
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert json string to list
- Builds a ResultJson object
- Send push message
- Send Kafka
- Convert date to time string
- Get current date
- Bean configuration
- Format a JSON string
- Convert json string to a POJO
- Get day of month
- Get the hour of the date
- Check if map exists
- Gets month
- Get second
- Gets the minute of the date
- Gets the millis
- Listen to Kafka
- Get week of date
- Convert past date to a string
- Get time difference
- Get past week date
- Prepare log
- Get month month date
message-push Key Features
message-push Examples and Code Snippets
Community Discussions
Trending Discussions on message-push
QUESTION
I downloaded some interesting code from Indy 10 TIdTCPServer and compiled and ran it. It's a bit messy and it probably needs work but it's a good foundation for something interesting. At least I don't have to post all the code here. Anyway, I decided that the ExampleServer
needs to be de-activated first, not just freed in OnDestroy
. So I added:
ANSWER
Answered 2018-Jan-31 at 18:51Indy uses blocking sockets.
TIdListenerThread
runs a loop waiting for clients to connect. Each wait is a blocking operation.
When the server is being deactivated, it closes its listening socket(s), causing pending socket operations to abort, and then the listening thread(s) are terminated. The abort exception is handled internally.
The server's destructor also sets Active=False
, so whether you deactivate explicitly or not, the server will be deactivated.
This, in if itself, is not causing your hang. Typically, the only way setting Active=False
can ever hang is if a server event handler tries to sync with the main UI thread synchronously while the main thread is blocked waiting for the server to deactivate. Classic deadlock scenario.
That does not appear to be the case in the demo you linked to, though (the only sync being used is asynchronous instead). So, something else is likely going on that your debugging hasn't reveiled yet. There should be no hang.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install message-push
You can use message-push like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the message-push component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page