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

#306: Modify BkBasic for persistent conections according to HTTP 1.1 #337

Closed
wants to merge 14 commits into from

Conversation

lautarobock
Copy link
Contributor

#306 Modify BkBasic checking headers and modifying resposes for http conections according to HTTP 1.1

@davvd
Copy link

davvd commented Jun 9, 2015

@lautarobock Thanks, I will find someone to review this PR soon

@davvd
Copy link

davvd commented Jun 9, 2015

@pinaf please review,thanks

* Create a joiner for a header.
* @return Joiner
*/
private Joiner joiner() {
Copy link

Choose a reason for hiding this comment

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

@lautarobock instead of extracting this into a method, you should create a private static final String with the \r\n string.

@pinaf
Copy link

pinaf commented Jun 11, 2015

@lautarobock sorry for the delay

@pinaf
Copy link

pinaf commented Jun 11, 2015

@lautarobock 12 comments above

@pinaf
Copy link

pinaf commented Jun 11, 2015

@lautarobock nice PR!

@lautarobock
Copy link
Contributor Author

@pinaf there is a new commit with fixes

@pinaf
Copy link

pinaf commented Jun 12, 2015

@lautarobock looks good

@pinaf
Copy link

pinaf commented Jun 12, 2015

@lautarobock thanks

@pinaf
Copy link

pinaf commented Jun 12, 2015

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jun 12, 2015

@rultor merge

@pinaf Thanks for your request. @yegor256 Please confirm this.

@yegor256
Copy link
Owner

@lautarobock the implementation is OK, but the way you test it is rather bad. Mocking, in general, is a bad practice, see http://www.yegor256.com/2014/09/23/built-in-fake-objects.html Instead of mocking a Socket, let's create a proper HTTP connection and send some data into it in a few sessions and see how the server will behave. More like an integration test..

@lautarobock
Copy link
Contributor Author

@yegor256 ok, but the test with mocks was there before. I will change the test, but I think more for a //TODO or //FIXME for only 30 minutes

@lautarobock
Copy link
Contributor Author

@yegor256 Is there a way to make JdkRequest use the same connection? because in JdkRequest:129 the connection is always closed.

@lautarobock
Copy link
Contributor Author

@yegor256 @pinaf done

@pinaf
Copy link

pinaf commented Jun 26, 2015

@yegor256 Is this what you were looking for?

@yegor256
Copy link
Owner

yegor256 commented Jul 1, 2015

@pinaf @lautarobock I don't really like this boolean flag "persistent" in the class. It would be much better to create another class, something like BkPersistent. I'm not sure how, but current implementation is too complex...

@lautarobock
Copy link
Contributor Author

@pinaf @yegor256 really I don't like too. But another class implies too mucho redundant code, both options require a post-refactor.

@yegor256
Copy link
Owner

yegor256 commented Jul 1, 2015

@lautarobock yes, we should somehow get rid of code duplication. let's think...

@lautarobock
Copy link
Contributor Author

@yegor256 IMHO I think the actual solution in the minimal enough, the best is to create a new bug with this refactor.

@yegor256
Copy link
Owner

yegor256 commented Jul 2, 2015

@lautarobock current solution makes the code hard to read. I would recommend you to keep the unit test in the branch and remove the implementation. Then, add a puzzle to the test. Someone later will implement it.

@lautarobock
Copy link
Contributor Author

@yegor256 done, remove implementation and let test @Ignore waiting for new implementation

@pinaf
Copy link

pinaf commented Jul 3, 2015

@lautarobock there are checkstyle violations. please fix them and get the travis build to go green.

@lautarobock
Copy link
Contributor Author

@pinaf new commit with this fixes, sorry

@pinaf
Copy link

pinaf commented Jul 3, 2015

@lautarobock I don't see the puzzle @yegor256 asked for

@lautarobock
Copy link
Contributor Author

@pinaf yes, but, what this mind in this case?

@pinaf
Copy link

pinaf commented Jul 4, 2015

@lautarobock sorry, I don't understand

@pinaf
Copy link

pinaf commented Jul 13, 2015

@lautarobock hello?

@pinaf
Copy link

pinaf commented Jul 18, 2015

@lautarobock if you are not going to merge, could you please close this PR? Thanks!

@pinaf
Copy link

pinaf commented Jul 19, 2015

@lautarobock ping

@lautarobock
Copy link
Contributor Author

@pinaf done

@davvd
Copy link

davvd commented Jul 22, 2015

@elenavolokhova please, let us know what do you think about this ticket, according to our QA rules

@elenavolokhova
Copy link

@pinaf

lautarobock commented 29 days ago
sorry, forget the -Pqulice, i will try again

lautarobock commented 29 days ago
sorry, I sill sick ...

According to our quality rules:

Messages in a ticket always start with a name of a user they are addressed to.

As far as you are the performer of this ticket you are responsible for its quality. Please make sure that everyone follows this rule in your tickets in the future. Ask them to fix issues before closing the ticket.

Please confirm that everything is clear and you have no questions regarding this approach.

@pinaf
Copy link

pinaf commented Jul 22, 2015

@elenavolokhova sorry. I'll pay more attention.

@elenavolokhova
Copy link

@pinaf Thank you!

@elenavolokhova
Copy link

@davvd Quality is acceptable here.

@davvd
Copy link

davvd commented Jul 23, 2015

@davvd Quality is acceptable here.

@elenavolokhova thanks for the QA review, we'll work better next time

@davvd
Copy link

davvd commented Jul 23, 2015

@pinaf I added 10 mins to @elenavolokhova (for QA review) in transaction 61660897... 29 mins was added to your account, many thanks for your contribution (payment AP-3CV882267J514640X)! The task took 1006 hours and 59 mins.... extra minutes for review comments (c=14)... +29 added to your rating, at the moment it is: +5729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants