import os
import Pyro4
Pyro4.config.SERIALIZERS_ACCEPTED.add('pickle')
Pyro4.config.SERIALIZERS_ACCEPTED.add('dill')
Pyro4.config.SERIALIZER = 'dill'
Pyro4.config.THREADPOOL_SIZE = 16
Pyro4.config.SERVERTYPE = 'thread'
Pyro4.config.REQUIRE_EXPOSE = False
Pyro4.config.COMMTIMEOUT = 0.
Pyro4.config.DETAILED_TRACEBACK = True
os.environ['OSBRAIN_DEFAULT_TRANSPORT'] = 'ipc'
os.environ['OSBRAIN_DEFAULT_SAFE'] = 'true'
os.environ['OSBRAIN_DEFAULT_SERIALIZER'] = 'pickle'
os.environ['OSBRAIN_DEFAULT_LINGER'] = '1'

__version__ = '0.4.0'

from .agent import Agent, AgentProcess, run_agent
from .nameserver import run_nameserver
from .proxy import Proxy, NSProxy
from .address import SocketAddress, AgentAddress
from .logging import Logger, run_logger

import os
import Pyro4
Pyro4.config.SERIALIZERS_ACCEPTED.add('pickle')
Pyro4.config.SERIALIZERS_ACCEPTED.add('dill')
Pyro4.config.SERIALIZER = 'dill'
Pyro4.config.THREADPOOL_SIZE = 16
Pyro4.config.SERVERTYPE = 'thread'
Pyro4.config.REQUIRE_EXPOSE = False
Pyro4.config.COMMTIMEOUT = 0.
Pyro4.config.DETAILED_TRACEBACK = True
os.environ['OSBRAIN_DEFAULT_TRANSPORT'] = 'ipc'
os.environ['OSBRAIN_DEFAULT_SAFE'] = 'true'
os.environ['OSBRAIN_DEFAULT_SERIALIZER'] = 'pickle'
os.environ['OSBRAIN_DEFAULT_LINGER'] = '-1'

__version__ = '0.4.0'

from .agent import Agent, AgentProcess, run_agent
from .nameserver import run_nameserver
from .proxy import Proxy, NSProxy
from .address import SocketAddress, AgentAddress
from .logging import Logger, run_logger

--- 
+++ 
@@ -11,7 +11,7 @@
 os.environ['OSBRAIN_DEFAULT_TRANSPORT'] = 'ipc'
 os.environ['OSBRAIN_DEFAULT_SAFE'] = 'true'
 os.environ['OSBRAIN_DEFAULT_SERIALIZER'] = 'pickle'
-os.environ['OSBRAIN_DEFAULT_LINGER'] = '-1'
+os.environ['OSBRAIN_DEFAULT_LINGER'] = '1'
 
 __version__ = '0.4.0'
 
Set default linger to 1 second
