Hi,

When using localhome, my libBasexTest executes this test without problems:

cout << "\n4 Add content from a directory" << endl;
string path; path.append(filesystem::read_symlink(exe_path).parent_path()).append("/src/extdata/xml_files");
for (const auto & entry : filesystem::directory_iterator(path)) {
        Session.Add("Add_XML_3", entry.path());
};
And 12 xml-files are added.

But when I connect to a remote linux-based basexserver, I have to add:
int limit = 11;
int count = 0;
                
for (const auto & entry : filesystem::directory_iterator(path)) {
        if (count > limit) break;
        Session.Add("Add_XML_3", entry.path());
        count++;
};
Without the 'if (count > limit) break;' libBasexTest crashes.
And without test \n4 there are no errors. Strange...

This is not the biggest problem.
After crashing, on the remote server access to port 1984 is denied. I can't restart basexhttp nor basexserver. Both commands abort with the message that access to port 1984 is denied. Deleting the basex-tree and rebooting the remote machine is the only way to restart one off both services.

What is the best way to resore connection to port 1984?

Ben
PS. After starting basexhttp - without a trailing & - I don't return to the prompt. Is this intentional?

--
Ben Engbers
Grietjeshof 77
6721 VH  Bennekom
+31 6 23634840

Reply via email to