Python Forum
All pipe instances are busy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All pipe instances are busy
#1
Hi
I am trying to use pipes to communicate between 2 python apps
On the server side I create a named pipe
      
self.server_pipe = win32pipe.CreateNamedPipe(r'\\.\pipe\DataUpdate',
                                                     win32pipe.PIPE_ACCESS_DUPLEX,
                                                     win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_READMODE_MESSAGE | win32pipe.PIPE_WAIT,
                                                     win32pipe.PIPE_UNLIMITED_INSTANCES,
                                                     65536,
                                                     65536,
                                                     0,
                                                     None)
        win32pipe.ConnectNamedPipe(self.server_pipe, None)
Then on the client side
        self.client_pipe = win32file.CreateFile(r'\\.\pipe\DataUpdate',
                                                win32file.GENERIC_READ | win32file.GENERIC_WRITE,
                                                0,
                                                None,
                                                win32file.OPEN_EXISTING,
                                                win32file.FILE_ATTRIBUTE_NORMAL,
                                                None)
        res = win32pipe.SetNamedPipeHandleState(self.client_pipe,
                                                win32pipe.PIPE_READMODE_MESSAGE,
                                                None,
                                                None)
I start the server first but when I run the client I get
pywintypes.error: (231, 'CreateFile', 'All pipe instances are busy.')

Have I missed something?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  BrokenPipeError: [Errno 32] Broken pipe Pflaumboy 3 23,668 Jul-29-2019, 07:48 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020