Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

IPC tweaks #2046

Merged
merged 1 commit into from
Sep 9, 2016
Merged

IPC tweaks #2046

merged 1 commit into from
Sep 9, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Sep 3, 2016

  • no timeouts for heavy services (can be forced with env var PARITY_IPC_DEBUG)
  • disable client timer early to stop requests during shutdown (not ideal solution, should be in while designing general one)

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Sep 3, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2fc7090 on ipc-tweaks-3 into * on master*.

@@ -39,7 +41,7 @@ impl IoHandler<ClientIoMessage> for ClientIoHandler {
}

fn timeout(&self, _io: &IoContext<ClientIoMessage>, timer: TimerToken) {
if let INFO_TIMER = timer {
if timer == INFO_TIMER && !self.shutdown.load(Ordering::SeqCst) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what makes this check necessary? does the informant block and the IoManager's event loop can't finish?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rphmeier
Timer tries to request data from sync service which can be already shutdown

@arkpar
Copy link
Collaborator

arkpar commented Sep 5, 2016

What's the reason to have debug setting with lower timeout?

@rphmeier
Copy link
Contributor

rphmeier commented Sep 6, 2016

(LGTM modulo the above grumble)

@NikVolf
Copy link
Contributor Author

NikVolf commented Sep 8, 2016

@arkpar
missed comment
not to wait timeouts when you try to figure out what is wrong

@NikVolf
Copy link
Contributor Author

NikVolf commented Sep 8, 2016

#2029, #2027

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 9, 2016
@rphmeier rphmeier merged commit 53b22da into master Sep 9, 2016
@arkpar arkpar deleted the ipc-tweaks-3 branch October 3, 2016 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants