Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Fixing send/poll race #82

Closed
wants to merge 1 commit into from
Closed

Fixing send/poll race #82

wants to merge 1 commit into from

Conversation

moozzyk
Copy link
Contributor

@moozzyk moozzyk commented Dec 27, 2016

Fixing a bug where the server would throw if send request is received before the first poll or sse request (#57). We will now delay send until the first poll or sse is received or reject the send request if poll or sse not received within a timeout
Also making the connection not to be marked as Active upon reserving a connection. This enables cleaning up connections that were reserved but never used.

Fixing a bug where the server would throw if send request is received before the first poll or sse request (#57). We will now delay send until the first poll or sse is received or reject the send request if poll or sse not received within a timeout
Also making the connection not to be marked as Active upon reserving a connection. This enables cleaning up connections that were reserved but never used.
@davidfowl
Copy link
Member

davidfowl commented Dec 27, 2016

Why not always add the pipeline? We don't need the new TCS since we're doing to go this route.

@moozzyk
Copy link
Contributor Author

moozzyk commented Dec 27, 2016

I can try that as well

@BrennanConroy
Copy link
Member

One problem with creating it on /getid is that formattype won't be set if /send is called before /poll

@BrennanConroy
Copy link
Member

Looks like there is a race, if /send is waiting and /poll sets the tcs then /send can continue and do things before /poll sets the formattype

@davidfowl
Copy link
Member

@BrennanConroy maybe we need to allow setting the format type as early as needed.

@moozzyk
Copy link
Contributor Author

moozzyk commented Jan 1, 2017

Because you don't know when it is it would just mean you always need to send it.

@moozzyk
Copy link
Contributor Author

moozzyk commented Jan 4, 2017

This will be solved differently (i.e. by specifying the format during negotiation)

@moozzyk moozzyk closed this Jan 4, 2017
@moozzyk moozzyk deleted the pawelka/bug-57 branch January 4, 2017 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants