Skip to content

Commit

Permalink
Move the fixed #flush implementation to an extension loaded only on P…
Browse files Browse the repository at this point in the history
…haro < 12 versions
  • Loading branch information
jvanecek committed Aug 12, 2024
1 parent eca1148 commit baf3971
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
Class {
#name : 'AmqpSocketStream',
#superclass : 'SocketStream',
#category : 'Ansible-Protocol-Core',
#package : 'Ansible-Protocol-Core'
}
Extension { #name : 'SocketStream' }

{ #category : 'control' }
AmqpSocketStream >> flush [
{ #category : '*Ansible-Pharo-Pending-Patches' }
SocketStream >> flush [
"If the other end is connected and we have something
to send, then we send it and reset the outBuffer.
If the other end is closed and we are signaling errors, do so."
Expand Down
1 change: 1 addition & 0 deletions source/Ansible-Pharo-Pending-Patches/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'Ansible-Pharo-Pending-Patches' }
22 changes: 12 additions & 10 deletions source/Ansible-Protocol-Core/AmqpConnection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,20 @@ AmqpConnection >> nextFrame [
{ #category : 'opening' }
AmqpConnection >> open [

codec := AmqpCodec on: ( ( AmqpSocketStream on: socket )
noTimeout;
binary;
yourself ).
codec := AmqpCodec
on:
((SocketStream on: socket)
noTimeout;
binary;
yourself).

self
sendProtocolHeader;
startConnection;
tuneConnection;
openConnection.
self
sendProtocolHeader;
startConnection;
tuneConnection;
openConnection.

heartbeatSender startBeatingEvery: parameters heartbeat
heartbeatSender startBeatingEvery: parameters heartbeat
]

{ #category : 'private-opening' }
Expand Down
8 changes: 7 additions & 1 deletion source/BaselineOfAnsible/BaselineOfAnsible.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ BaselineOfAnsible >> setUpDependencies: spec [

{ #category : 'baselines' }
BaselineOfAnsible >> setUpDeploymentPackages: spec [


spec
for: #('pharo7.x' 'pharo8.x' 'pharo9.x' 'pharo10.x' 'pharo11.x')
do: [ spec
package: 'Ansible-Pharo-Pending-Patches';
group: 'RabbitMQ' with: 'Ansible-Pharo-Pending-Patches' ].

spec
package: 'Ansible-Protocol-Core';
group: 'Deployment-08' with: 'Ansible-Protocol-Core';
Expand Down

0 comments on commit baf3971

Please sign in to comment.