File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,15 @@ def _get_timeout(default=15):
134
134
'icon_path' : get_icon_path ()
135
135
}
136
136
}
137
- if os .getenv ('JUPYTER_RSESSION_PROXY_USE_SOCKET' ):
138
- server_process ['unix_socket' ] = True
137
+
138
+ use_socket = os .getenv ('JUPYTER_RSESSION_PROXY_USE_SOCKET' )
139
+ if use_socket is not None :
140
+ # If this env var is anything other than case insensitive 'no' or 'false',
141
+ # use unix sockets instead of tcp sockets. This allows us to default to
142
+ # using unix sockets by default in the future once this feature is better
143
+ # tested, and allow people to turn it off if needed.
144
+ if use_socket .casefold () not in ('no' , 'false' ):
145
+ server_process ['unix_socket' ] = True
139
146
140
147
return server_process
141
148
You can’t perform that action at this time.
0 commit comments