Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msg_layer module blocks when sends fail #59

Open
bxatnarf opened this issue Nov 5, 2018 · 0 comments
Open

msg_layer module blocks when sends fail #59

bxatnarf opened this issue Nov 5, 2018 · 0 comments

Comments

@bxatnarf
Copy link
Collaborator

bxatnarf commented Nov 5, 2018

The msg_layer module needs some sort of timeout when it fails to send a message. Currently it just blocks and fills the log with "send interrupted" messages.

In deq_send

while (remaining > 0) {
		int sent = ksock_send(sh->sock, p, remaining);
		if (sent < 0) {
			MSGPRINTK("send interrupted, %d\n", sent);
			io_schedule();
			continue;
		}
		p += sent;
		remaining -= sent;
		//printk("Sent %d remaining %d\n", sent, remaining);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants