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

Server did not shut down within time-out period #106

Closed
john-hen opened this issue Jan 1, 2023 · 1 comment
Closed

Server did not shut down within time-out period #106

john-hen opened this issue Jan 1, 2023 · 1 comment
Labels
fixed Fix for issue has been released.

Comments

@john-hen
Copy link
Collaborator

john-hen commented Jan 1, 2023

With Comsol 6.1 (on Windows), the server process does not stop within the default time-out period.

>>> import mph
>>> server = mph.Server()
>>> server.version
'6.1'
>>> server.stop()
Server did not shut down within time-out period.

The default time-out period (in MPh 1.2.0) is 10 seconds. It does however work with a somewhat longer time-out: server.stop(timeout=15).

This seems to be a change in the behavior of the Comsol server process. When doing this manually on the command line, it now takes a little over 10 seconds to exit, i.e. after typing "close". Whereas in earlier Comsol versions the server would shut down within a second or two.

$ comsolmphserver
COMSOL Multiphysics server 6.1 (Build: 252) started listening on port 2036
Use the console command 'close' to exit the program
close
@john-hen john-hen added the bug Something isn't working. label Jan 1, 2023
john-hen added a commit that referenced this issue Jan 1, 2023
This is to accommodate changes in Comsol 6.1, where the server process
takes longer to wind down than it used to in earlier versions.
@john-hen
Copy link
Collaborator Author

john-hen commented Jan 2, 2023

Fixed in MPh 1.2.1, released today.

@john-hen john-hen closed this as completed Jan 2, 2023
@john-hen john-hen added fixed Fix for issue has been released. and removed bug Something isn't working. labels Feb 12, 2023
TermeHansen pushed a commit to resolventdk/MPh that referenced this issue Aug 3, 2023
This is to accommodate changes in Comsol 6.1, where the server process
takes longer to wind down than it used to in earlier versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Fix for issue has been released.
Projects
None yet
Development

No branches or pull requests

1 participant