enthus1ast / nimSocks

A filtering SOCKS proxy server and client library written in nim.
MIT License
61 stars 5 forks source link

randomly crashes on send with "File descriptor not registered" #1

Closed enthus1ast closed 7 years ago

enthus1ast commented 7 years ago
Handling command: succeed
Handling command: succeed
connection from: 127.0.0.1
socks4
host: 0.0.0.1
socks4a
vid.example.com
Handling command: succeed
Traceback (most recent call last)
server.nim(442)          server
asyncdispatch.nim(1010)  runForever
asyncdispatch.nim(1045)  poll
asyncdispatch.nim(179)   processPendingCallbacks
asyncmacro.nim(34)       cb0
server.nim(137)          pumpIter
asyncmacro.nim(393)      send
asyncmacro.nim(34)       cb0
asyncnet.nim(426)        sendIter
asyncdispatch.nim(1274)  send
asyncdispatch.nim(1130)  send
asyncdispatch.nim(982)   addWrite
[[reraised from:
server.nim(442)          server
asyncdispatch.nim(1010)  runForever
asyncdispatch.nim(1045)  poll
asyncdispatch.nim(179)   processPendingCallbacks
asyncmacro.nim(34)       cb0
asyncmacro.nim           pumpIter
asyncfutures.nim(243)    read
]]
[[reraised from:
server.nim(442)          server
asyncdispatch.nim(1010)  runForever
asyncdispatch.nim(1045)  poll
asyncdispatch.nim(179)   processPendingCallbacks
asyncfutures.nim(288)    :anonymous
]]
Error: unhandled exception: File descriptor not registered.
  send's lead up to read of failed Future:
    Traceback (most recent call last)
    server.nim(442)          server
    asyncdispatch.nim(1010)  runForever
    asyncdispatch.nim(1045)  poll
    asyncdispatch.nim(179)   processPendingCallbacks

asyncmacro.nim(34)       cb0
asyncnet.nim(426)        sendIter
asyncdispatch.nim(1274)  send
asyncdispatch.nim(1130)  send
asyncdispatch.nim(982)   addWrite
[[reraised from:
server.nim(442)          server
asyncdispatch.nim(1010)  runForever
asyncdispatch.nim(1045)  poll
asyncdispatch.nim(179)   processPendingCallbacks
asyncmacro.nim(34)       cb0
asyncmacro.nim           pumpIter
asyncfutures.nim(243)    read
]]
[[reraised from:
server.nim(442)          server
asyncdispatch.nim(1010)  runForever
asyncdispatch.nim(1045)  poll
asyncdispatch.nim(179)   processPendingCallbacks
asyncfutures.nim(288)    :anonymous
]]
Error: unhandled exception: File descriptor not registered.
  send's lead up to read of failed Future:
    Traceback (most recent call last)
    server.nim(442)          server
    asyncdispatch.nim(1010)  runForever
    asyncdispatch.nim(1045)  poll
    asyncdispatch.nim(179)   processPendingCallbacks
    asyncmacro.nim(34)       cb0
    server.nim(137)          pumpIter
    asyncmacro.nim(393)      send
    asyncmacro.nim(34)       cb0
    asyncnet.nim(426)        sendIter
    asyncdispatch.nim(1274)  send
    asyncdispatch.nim(1130)  send
    asyncdispatch.nim(982)   addWrite
  pump's lead up to read of failed Future:
    Traceback (most recent call last)
    server.nim(442)          server
    asyncdispatch.nim(1010)  runForever
    asyncdispatch.nim(1045)  poll
    asyncdispatch.nim(179)   processPendingCallbacks
    asyncmacro.nim(34)       cb0
    server.nim(137)          pumpIter
    asyncmacro.nim(393)      send
    asyncmacro.nim(34)       cb0
    asyncnet.nim(426)        sendIter
    asyncdispatch.nim(1274)  send
    asyncdispatch.nim(1130)  send
    asyncdispatch.nim(982)   addWrite
    [[reraised from:
    server.nim(442)          server
    asyncdispatch.nim(1010)  runForever
    asyncdispatch.nim(1045)  poll
    asyncdispatch.nim(179)   processPendingCallbacks
    asyncmacro.nim(34)       cb0
    asyncmacro.nim           pumpIter
    asyncfutures.nim(243)    read
    ]] [ValueError]