Skip to content

Commit

Permalink
Use 9982 as the port for the loolwsd in AppImage.
Browse files Browse the repository at this point in the history
  • Loading branch information
kendy authored and timar committed Jun 2, 2020
1 parent 9dc655e commit a218bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function startsWith($string, $with) {

// If we can't get a socket open in 3 seconds when that is backed by
// a dedicated thread, then we have a server missing in action.
$local = fsockopen("localhost", 9980, $errno, $errstr, 3);
$local = fsockopen("localhost", 9982, $errno, $errstr, 3);

// Return the status and exit if it is a ?status request
if ($statusOnly) {
Expand All @@ -179,7 +179,7 @@ function startsWith($string, $with) {
} else if ($errno == 111) {
print '{"status":"starting"}';
} else {
$response = file_get_contents("http://localhost:9980/hosting/capabilities", 0, stream_context_create(["http"=>["timeout"=>1]]));
$response = file_get_contents("http://localhost:9982/hosting/capabilities", 0, stream_context_create(["http"=>["timeout"=>1]]));
if ($response) {
// Version check.
$obj = json_decode($response);
Expand Down Expand Up @@ -224,7 +224,7 @@ function startsWith($string, $with) {
startLoolwsd();

while (true) {
$local = fsockopen("localhost", 9980, $errno, $errstr, 15);
$local = fsockopen("localhost", 9982, $errno, $errstr, 15);
if ($errno == 111) {
debug_log("Can't yet connect to socket so sleep");
usleep(50 * 1000); // 50ms.
Expand Down

0 comments on commit a218bb4

Please sign in to comment.