Projects tigase _server server-core Issues #1513
Retrying undelivered packets should only happen for payload packets in cluster (#1513)
wojciech.kapcia@tigase.net opened 1 year ago

In case of writing packet to socket problem, packet may be slated for re-delivery, but this only should apply to proper cluster payload packets (IQ and message stanzas).


Context: there was a problem with connectivity, which resulted in NPE because tigase tried to re-deliver  `<handshake/>` packet, which should have been dropped. What's more, particular point may result in subsequent closing of the connection:

```
[2023-12-09 16:33:11:374] [SEVERE ] [in_10-cl-comp ] AbstractMessageReceiver$QueueListener.run(): Exception during packet processing: from-null, to=null, serverAuthorisedStanzaFrom-Optional. empty, DATA=<handshake/>, SIZE=12, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, STABLE_ID=null
java.lang.NullPointerException
    at tigase.server.Packet.packRouted(Packet.java:1004)
    at tigase.cluster.ClusterConnectionManager.processPacket(ClusterConnectionnager.java:406)
    at tigase.server.AbstractMessageReceiverSQueueListener.run(AbstractMessageReceiver.java:1398)
```
wojciech.kapcia@tigase.net added "Related" Customers/carnow-inc#148 1 year ago
Referenced from commit 1 year ago
Andrzej Wójcik (Tigase) changed state to 'In Progress' 1 year ago
Previous Value Current Value
Open
In Progress
Andrzej Wójcik (Tigase) changed state to 'In QA' 1 year ago
Previous Value Current Value
In Progress
In QA
Andrzej Wójcik (Tigase) commented 1 year ago

I've added check to ensure only <cluster/> and <route/> packets are redelivered as according to processPacket() method, all other packets are wrapped as one of those. Remaining packets are packets used for handshaked or ping and should be dropped.

Referenced from commit 11 months ago
wojciech.kapcia@tigase.net changed state to 'Closed' 8 months ago
Previous Value Current Value
In QA
Closed
wojciech.kapcia@tigase.net added to iteration "tigase-server-8.4.0" 7 months ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
8.4.0, 8.2.x
Server Version
8.4.0, 8.2.x
Target Release
1.0
Sprints
n/a
Customer
n/a
Iterations
Issue Votes (0)
Watchers (3)
Reference
tigase/_server/server-core#1513
Please wait...
Page is in error, reload to recover