Skip to content

Commit 91cd775

Browse files
committed
forgot to add the channel to the socket after connecting
1 parent 510f0e0 commit 91cd775

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/socket

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/socket/SocketBuiltins.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Object connect(PSocket socket, PTuple address) {
176176
InetSocketAddress socketAddress = new InetSocketAddress((String) hostAndPort[0], (Integer) hostAndPort[1]);
177177
SocketChannel channel = SocketChannel.open();
178178
channel.connect(socketAddress);
179+
socket.setSocket(channel);
179180
return PNone.NONE;
180181
} catch (IOException e) {
181182
throw raise(PythonBuiltinClassType.OSError);

0 commit comments

Comments
 (0)