Skip to content

Commit

Permalink
Change Capybara-webkit to listen on poty 8200, simple patch removes c…
Browse files Browse the repository at this point in the history
…ollission with ElasticSearch. Also documents port number so as to give people a heads-up
  • Loading branch information
leehambley committed Jun 29, 2011
1 parent 92081db commit 644d85d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -41,6 +41,12 @@ The capybara WebKit driver was written by Joe Ferris, Tristan Dunn, and Jason Mo

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

Notes
-----

This capybara WebKit driver will listen on port 8200, this may conflict
with other services.

License
-------

Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/driver/webkit/browser.rb
Expand Up @@ -76,7 +76,7 @@ def connect
end

def attempt_connect
@socket = @socket_class.open("localhost", 9200)
@socket = @socket_class.open("localhost", 8200)
rescue Errno::ECONNREFUSED
end

Expand Down
2 changes: 1 addition & 1 deletion src/Server.cpp
Expand Up @@ -11,7 +11,7 @@ Server::Server(QObject *parent) : QObject(parent) {

bool Server::start() {
connect(m_tcp_server, SIGNAL(newConnection()), this, SLOT(handleConnection()));
return m_tcp_server->listen(QHostAddress::Any, 9200);
return m_tcp_server->listen(QHostAddress::Any, 8200);
}

void Server::handleConnection() {
Expand Down

0 comments on commit 644d85d

Please sign in to comment.